#2F1D8D#2F1D8D

#2F1D8D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.171 H 279.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2F1D8D
RGBrgb(47, 29, 141)
HSLhsl(250, 66%, 33%)
HSVhsv(250, 79%, 55%)
CMYKcmyk(66.7%, 79.4%, 0%, 44.7%)
CIE-LABlab(21.60, 41.53, -58.47)
CIE-LCHlch(21.60, 71.72, 305.39°)
OKLaboklab(34.26% 0.0287 -0.1688)
OKLCHoklch(34.26% 0.171 279.6)
XYZxyz(6.4178, 3.4056, 25.5133)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D8D #7B8D1D
analogous
#1D438D #2F1D8D #671D8D
triadic
#2F1D8D #8D2F1D #1D8D2F
tetradic
#2F1D8D #8D1D43 #7B8D1D #1D8D67
square
#2F1D8D #8D1D43 #7B8D1D #1D8D67
split-complementary
#2F1D8D #8D671D #438D1D
monochromatic
#0D0827 #1E135A #2F1D8D #4027C0 #624BDA

Accessibility & contrast

On white

12.49
#2F1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1D8D
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D8D#FFFFFF#000000##FFFFFF
##2F1D8D1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1d8d;
/* rgb */ color: rgb(47, 29, 141);
/* oklch */ color: oklch(34.3% 0.171 279.6);
Tailwind
colors: {
  custom: {
    50: '#755cb0',
    500: '#2f1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d8d;
$custom-light: #755cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d8d",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 249.643,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34257,
    "c": 0.17124,
    "h": 279.6
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#2F1D8D
secondary
#AABC4A
accent
#E93FCE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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