#2F1D8C#2F1D8C

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

Color values

HEX#2F1D8C
RGBrgb(47, 29, 140)
HSLhsl(250, 66%, 33%)
HSVhsv(250, 79%, 55%)
CMYKcmyk(66.4%, 79.3%, 0%, 45.1%)
CIE-LABlab(21.49, 41.22, -58.03)
CIE-LCHlch(21.49, 71.18, 305.39°)
OKLaboklab(34.15% 0.029 -0.1675)
OKLCHoklch(34.15% 0.17 279.8)
XYZxyz(6.3438, 3.3760, 25.1232)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D8C #7A8C1D
analogous
#1D428C #2F1D8C #661D8C
triadic
#2F1D8C #8C2F1D #1D8C2F
tetradic
#2F1D8C #8C1D42 #7A8C1D #1D8C66
square
#2F1D8C #8C1D42 #7A8C1D #1D8C66
split-complementary
#2F1D8C #8C661D #428C1D
monochromatic
#0D0827 #1E1259 #2F1D8C #4028BF #614AD9

Accessibility & contrast

On white

12.53
#2F1D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1D8C
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D8C#FFFFFF#000000##FFFFFF
##2F1D8C1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1d8c;
/* rgb */ color: rgb(47, 29, 140);
/* oklch */ color: oklch(34.1% 0.170 279.8);
Tailwind
colors: {
  custom: {
    50: '#755caf',
    500: '#2f1d8c',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d8c;
$custom-light: #755caf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d8c",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 249.73,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34148,
    "c": 0.17002,
    "h": 279.8
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#2F1D8C
secondary
#A9BC49
accent
#E93FCD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F1D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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