#2F1F84#2F1F84

#2F1F84 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.158 H 280.9°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2F1F84
RGBrgb(47, 31, 132)
HSLhsl(250, 62%, 32%)
HSVhsv(250, 77%, 52%)
CMYKcmyk(64.4%, 76.5%, 0%, 48.2%)
CIE-LABlab(21.02, 37.58, -53.79)
CIE-LCHlch(21.02, 65.62, 304.94°)
OKLaboklab(33.56% 0.0298 -0.1552)
OKLCHoklch(33.56% 0.158 280.9)
XYZxyz(5.8258, 3.2498, 22.1456)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F84 #74841F
analogous
#1F4284 #2F1F84 #621F84
triadic
#2F1F84 #842F1F #1F842F
tetradic
#2F1F84 #841F42 #74841F #1F8462
square
#2F1F84 #841F42 #74841F #1F8462
split-complementary
#2F1F84 #84621F #42841F
monochromatic
#0C0821 #1D1352 #2F1F84 #412BB6 #5F49D4

Accessibility & contrast

On white

12.73
#2F1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F84
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F84#FFFFFF#000000##FFFFFF
##2F1F841.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1f84;
/* rgb */ color: rgb(47, 31, 132);
/* oklch */ color: oklch(33.6% 0.158 280.9);
Tailwind
colors: {
  custom: {
    50: '#735da9',
    500: '#2f1f84',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f84;
$custom-light: #735da9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f84",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 249.505,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33561,
    "c": 0.15803,
    "h": 280.9
  },
  "luminance": 0.0325
}

Semantic roles & 50–950 ramp

primary
#2F1F84
secondary
#A5B748
accent
#E543CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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