#2F1F87#2F1F87

#2F1F87 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.162 H 280.3°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2F1F87
RGBrgb(47, 31, 135)
HSLhsl(249, 63%, 33%)
HSVhsv(249, 77%, 53%)
CMYKcmyk(65.2%, 77%, 0%, 47.1%)
CIE-LABlab(21.33, 38.55, -55.16)
CIE-LCHlch(21.33, 67.30, 304.95°)
OKLaboklab(33.88% 0.0291 -0.1592)
OKLCHoklch(33.88% 0.162 280.3)
XYZxyz(6.0341, 3.3331, 23.2424)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F87 #77871F
analogous
#1F4387 #2F1F87 #631F87
triadic
#2F1F87 #872F1F #1F872F
tetradic
#2F1F87 #871F43 #77871F #1F8763
square
#2F1F87 #871F43 #77871F #1F8763
split-complementary
#2F1F87 #87631F #43871F
monochromatic
#0C0823 #1E1455 #2F1F87 #402AB9 #604BD6

Accessibility & contrast

On white

12.60
#2F1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F87
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F87#FFFFFF#000000##FFFFFF
##2F1F871.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1f87;
/* rgb */ color: rgb(47, 31, 135);
/* oklch */ color: oklch(33.9% 0.162 280.3);
Tailwind
colors: {
  custom: {
    50: '#745dab',
    500: '#2f1f87',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f87;
$custom-light: #745dab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f87",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 249.231,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33876,
    "c": 0.16182,
    "h": 280.3
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#2F1F87
secondary
#A7B84A
accent
#E642CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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