#2A2691#2A2691

#2A2691 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.168 H 275.2°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#2A2691
RGBrgb(42, 38, 145)
HSLhsl(242, 58%, 36%)
HSVhsv(242, 74%, 57%)
CMYKcmyk(71%, 73.8%, 0%, 43.1%)
CIE-LABlab(23.41, 37.25, -57.98)
CIE-LCHlch(23.41, 68.92, 302.72°)
OKLaboklab(35.56% 0.0154 -0.1676)
OKLCHoklch(35.56% 0.168 275.2)
XYZxyz(6.7571, 3.9222, 27.1835)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2691 #8D9126
analogous
#265791 #2A2691 #5F2691
triadic
#2A2691 #912A26 #26912A
tetradic
#2A2691 #912657 #8D9126 #26915F
square
#2A2691 #912657 #8D9126 #26915F
split-complementary
#2A2691 #915F26 #579126
monochromatic
#0E0D30 #1C1961 #2A2691 #3833C1 #615DD5

Accessibility & contrast

On white

11.77
#2A2691 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2691 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2691
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2691#FFFFFF#000000##FFFFFF
##2A26911.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2691;
/* rgb */ color: rgb(42, 38, 145);
/* oklch */ color: oklch(35.6% 0.168 275.2);
Tailwind
colors: {
  custom: {
    50: '#7362b2',
    500: '#2a2691',
    950: '#000000',
  },
}
SCSS
$custom: #2a2691;
$custom-light: #7362b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2691",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 145
  },
  "hsl": {
    "h": 242.243,
    "s": 58.47,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35563,
    "c": 0.16831,
    "h": 275.2
  },
  "luminance": 0.03923
}

Semantic roles & 50–950 ramp

primary
#2A2691
secondary
#B6BA59
accent
#E246DC
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2691

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2A2691 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva