#2F1E87#2F1E87

#2F1E87 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.163 H 280.5°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2F1E87
RGBrgb(47, 30, 135)
HSLhsl(250, 64%, 32%)
HSVhsv(250, 78%, 53%)
CMYKcmyk(65.2%, 77.8%, 0%, 47.1%)
CIE-LABlab(21.14, 39.10, -55.48)
CIE-LCHlch(21.14, 67.87, 305.17°)
OKLaboklab(33.74% 0.0297 -0.1601)
OKLCHoklch(33.74% 0.163 280.5)
XYZxyz(6.0084, 3.2817, 23.2338)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E87 #76871E
analogous
#1E4287 #2F1E87 #631E87
triadic
#2F1E87 #872F1E #1E872F
tetradic
#2F1E87 #871E42 #76871E #1E8763
square
#2F1E87 #871E42 #76871E #1E8763
split-complementary
#2F1E87 #87631E #42871E
monochromatic
#0C0823 #1E1355 #2F1E87 #4029B9 #6049D7

Accessibility & contrast

On white

12.68
#2F1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E87
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E87#FFFFFF#000000##FFFFFF
##2F1E871.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1e87;
/* rgb */ color: rgb(47, 30, 135);
/* oklch */ color: oklch(33.7% 0.163 280.5);
Tailwind
colors: {
  custom: {
    50: '#745cab',
    500: '#2f1e87',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e87;
$custom-light: #745cab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e87",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 249.714,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3374,
    "c": 0.16284,
    "h": 280.5
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#2F1E87
secondary
#A7B948
accent
#E741CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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