#2F1E88#2F1E88

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

Color values

HEX#2F1E88
RGBrgb(47, 30, 136)
HSLhsl(250, 64%, 33%)
HSVhsv(250, 78%, 53%)
CMYKcmyk(65.4%, 77.9%, 0%, 46.7%)
CIE-LABlab(21.24, 39.42, -55.93)
CIE-LCHlch(21.24, 68.43, 305.17°)
OKLaboklab(33.85% 0.0295 -0.1614)
OKLCHoklch(33.85% 0.164 280.3)
XYZxyz(6.0791, 3.3100, 23.6063)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E88 #77881E
analogous
#1E4288 #2F1E88 #641E88
triadic
#2F1E88 #882F1E #1E882F
tetradic
#2F1E88 #881E42 #77881E #1E8864
square
#2F1E88 #881E42 #77881E #1E8864
split-complementary
#2F1E88 #88641E #42881E
monochromatic
#0C0824 #1E1356 #2F1E88 #4029BA #6049D7

Accessibility & contrast

On white

12.64
#2F1E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1E88
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E88#FFFFFF#000000##FFFFFF
##2F1E881.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1e88;
/* rgb */ color: rgb(47, 30, 136);
/* oklch */ color: oklch(33.8% 0.164 280.3);
Tailwind
colors: {
  custom: {
    50: '#745dac',
    500: '#2f1e88',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e88;
$custom-light: #745dac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e88",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 249.623,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33847,
    "c": 0.1641,
    "h": 280.3
  },
  "luminance": 0.0331
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1E88

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

Preview Lab → · Contrast checker → · Palette generator →

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