#2F1F85#2F1F85

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

Color values

HEX#2F1F85
RGBrgb(47, 31, 133)
HSLhsl(249, 62%, 32%)
HSVhsv(249, 77%, 52%)
CMYKcmyk(64.7%, 76.7%, 0%, 47.8%)
CIE-LABlab(21.12, 37.91, -54.25)
CIE-LCHlch(21.12, 66.18, 304.94°)
OKLaboklab(33.67% 0.0296 -0.1565)
OKLCHoklch(33.67% 0.159 280.7)
XYZxyz(5.8946, 3.2773, 22.5077)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F85 #75851F
analogous
#1F4285 #2F1F85 #621F85
triadic
#2F1F85 #852F1F #1F852F
tetradic
#2F1F85 #851F42 #75851F #1F8562
square
#2F1F85 #851F42 #75851F #1F8562
split-complementary
#2F1F85 #85621F #42851F
monochromatic
#0C0822 #1D1353 #2F1F85 #412BB7 #5F4AD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1F85#FFFFFF#000000##FFFFFF
##2F1F851.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)
#003688
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1f85;
/* rgb */ color: rgb(47, 31, 133);
/* oklch */ color: oklch(33.7% 0.159 280.7);
Tailwind
colors: {
  custom: {
    50: '#745daa',
    500: '#2f1f85',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f85;
$custom-light: #745daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f85",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 249.412,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33665,
    "c": 0.15929,
    "h": 280.7
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#2F1F85
secondary
#A6B749
accent
#E543CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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