#2F1F89#2F1F89

#2F1F89 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.164 H 280.0°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2F1F89
RGBrgb(47, 31, 137)
HSLhsl(249, 63%, 33%)
HSVhsv(249, 77%, 54%)
CMYKcmyk(65.7%, 77.4%, 0%, 46.3%)
CIE-LABlab(21.54, 39.19, -56.07)
CIE-LCHlch(21.54, 68.41, 304.96°)
OKLaboklab(34.09% 0.0286 -0.1618)
OKLCHoklch(34.09% 0.164 280)
XYZxyz(6.1762, 3.3900, 23.9909)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F89 #79891F
analogous
#1F4489 #2F1F89 #641F89
triadic
#2F1F89 #892F1F #1F892F
tetradic
#2F1F89 #891F44 #79891F #1F8964
square
#2F1F89 #891F44 #79891F #1F8964
split-complementary
#2F1F89 #89641F #44891F
monochromatic
#0D0825 #1E1457 #2F1F89 #402ABB #614CD6

Accessibility & contrast

On white

12.51
#2F1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F89
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F89#FFFFFF#000000##FFFFFF
##2F1F891.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1f89;
/* rgb */ color: rgb(47, 31, 137);
/* oklch */ color: oklch(34.1% 0.164 280.0);
Tailwind
colors: {
  custom: {
    50: '#745dad',
    500: '#2f1f89',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f89;
$custom-light: #745dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f89",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 249.057,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34088,
    "c": 0.16433,
    "h": 280
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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