#2F1F88#2F1F88

#2F1F88 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.163 H 280.2°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2F1F88
RGBrgb(47, 31, 136)
HSLhsl(249, 63%, 33%)
HSVhsv(249, 77%, 53%)
CMYKcmyk(65.4%, 77.2%, 0%, 46.7%)
CIE-LABlab(21.44, 38.87, -55.62)
CIE-LCHlch(21.44, 67.86, 304.95°)
OKLaboklab(33.98% 0.0288 -0.1605)
OKLCHoklch(33.98% 0.163 280.2)
XYZxyz(6.1048, 3.3614, 23.6149)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F88 #78881F
analogous
#1F4388 #2F1F88 #631F88
triadic
#2F1F88 #882F1F #1F882F
tetradic
#2F1F88 #881F43 #78881F #1F8863
square
#2F1F88 #881F43 #78881F #1F8863
split-complementary
#2F1F88 #88631F #43881F
monochromatic
#0D0824 #1E1456 #2F1F88 #402ABA #604BD6

Accessibility & contrast

On white

12.56
#2F1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1F88
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F88#FFFFFF#000000##FFFFFF
##2F1F881.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.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: #2f1f88;
/* rgb */ color: rgb(47, 31, 136);
/* oklch */ color: oklch(34.0% 0.163 280.2);
Tailwind
colors: {
  custom: {
    50: '#745dac',
    500: '#2f1f88',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f88;
$custom-light: #745dac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f88",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 249.143,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33982,
    "c": 0.16307,
    "h": 280.2
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#2F1F88
secondary
#A8B94A
accent
#E642CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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