#2F1F8A#2F1F8A

#2F1F8A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.166 H 279.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#2F1F8A
RGBrgb(47, 31, 138)
HSLhsl(249, 63%, 33%)
HSVhsv(249, 78%, 54%)
CMYKcmyk(65.9%, 77.5%, 0%, 45.9%)
CIE-LABlab(21.65, 39.52, -56.52)
CIE-LCHlch(21.65, 68.96, 304.96°)
OKLaboklab(34.19% 0.0283 -0.1631)
OKLCHoklch(34.19% 0.166 279.8)
XYZxyz(6.2483, 3.4188, 24.3705)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F8A #7A8A1F
analogous
#1F448A #2F1F8A #641F8A
triadic
#2F1F8A #8A2F1F #1F8A2F
tetradic
#2F1F8A #8A1F44 #7A8A1F #1F8A64
square
#2F1F8A #8A1F44 #7A8A1F #1F8A64
split-complementary
#2F1F8A #8A641F #448A1F
monochromatic
#0D0926 #1E1458 #2F1F8A #402ABC #614CD7

Accessibility & contrast

On white

12.47
#2F1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1F8A
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F8A#FFFFFF#000000##FFFFFF
##2F1F8A1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1f8a;
/* rgb */ color: rgb(47, 31, 138);
/* oklch */ color: oklch(34.2% 0.166 279.8);
Tailwind
colors: {
  custom: {
    50: '#755dad',
    500: '#2f1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f8a;
$custom-light: #755dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f8a",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 248.972,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34194,
    "c": 0.16558,
    "h": 279.8
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#2F1F8A
secondary
#A9BA4B
accent
#E641CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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