#2A1F91#2A1F91

#2A1F91 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.175 H 276.3°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#2A1F91
RGBrgb(42, 31, 145)
HSLhsl(246, 65%, 35%)
HSVhsv(246, 79%, 57%)
CMYKcmyk(71%, 78.6%, 0%, 43.1%)
CIE-LABlab(22.00, 41.23, -60.31)
CIE-LCHlch(22.00, 73.06, 304.36°)
OKLaboklab(34.57% 0.0193 -0.1743)
OKLCHoklch(34.57% 0.175 276.3)
XYZxyz(6.5540, 3.5159, 27.1158)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1F91 #86911F
analogous
#1F4D91 #2A1F91 #631F91
triadic
#2A1F91 #912A1F #1F912A
tetradic
#2A1F91 #911F4D #86911F #1F9163
square
#2A1F91 #911F4D #86911F #1F9163
split-complementary
#2A1F91 #91631F #4D911F
monochromatic
#0D092C #1B145F #2A1F91 #392AC3 #5E51DA

Accessibility & contrast

On white

12.33
#2A1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1F91
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1F91#FFFFFF#000000##FFFFFF
##2A1F911.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1f91;
/* rgb */ color: rgb(42, 31, 145);
/* oklch */ color: oklch(34.6% 0.175 276.3);
Tailwind
colors: {
  custom: {
    50: '#745db2',
    500: '#2a1f91',
    950: '#000000',
  },
}
SCSS
$custom: #2a1f91;
$custom-light: #745db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1f91",
  "rgb": {
    "r": 42,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 245.789,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34565,
    "c": 0.1754,
    "h": 276.3
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#2A1F91
secondary
#B2BD4F
accent
#E840D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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