#2F1D8F#2F1D8F

#2F1D8F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.174 H 279.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2F1D8F
RGBrgb(47, 29, 143)
HSLhsl(249, 66%, 34%)
HSVhsv(249, 80%, 56%)
CMYKcmyk(67.1%, 79.7%, 0%, 43.9%)
CIE-LABlab(21.82, 42.16, -59.35)
CIE-LCHlch(21.82, 72.81, 305.39°)
OKLaboklab(34.48% 0.0281 -0.1714)
OKLCHoklch(34.48% 0.174 279.3)
XYZxyz(6.5680, 3.4657, 26.3041)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D8F #7D8F1D
analogous
#1D448F #2F1D8F #681D8F
triadic
#2F1D8F #8F2F1D #1D8F2F
tetradic
#2F1D8F #8F1D44 #7D8F1D #1D8F68
square
#2F1D8F #8F1D44 #7D8F1D #1D8F68
split-complementary
#2F1D8F #8F681D #448F1D
monochromatic
#0E0829 #1E135C #2F1D8F #4027C2 #624CDB

Accessibility & contrast

On white

12.40
#2F1D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F1D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D8F
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D8F#FFFFFF#000000##FFFFFF
##2F1D8F1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1d8f;
/* rgb */ color: rgb(47, 29, 143);
/* oklch */ color: oklch(34.5% 0.174 279.3);
Tailwind
colors: {
  custom: {
    50: '#765cb1',
    500: '#2f1d8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d8f;
$custom-light: #765cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d8f",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 249.474,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34476,
    "c": 0.17368,
    "h": 279.3
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#2F1D8F
secondary
#ABBD4B
accent
#E93FCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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