#2F1E8D#2F1E8D

#2F1E8D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.170 H 279.5°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2F1E8D
RGBrgb(47, 30, 141)
HSLhsl(249, 65%, 34%)
HSVhsv(249, 79%, 55%)
CMYKcmyk(66.7%, 78.7%, 0%, 44.7%)
CIE-LABlab(21.78, 41.01, -58.17)
CIE-LCHlch(21.78, 71.17, 305.18°)
OKLaboklab(34.39% 0.0281 -0.1679)
OKLCHoklch(34.39% 0.17 279.5)
XYZxyz(6.4427, 3.4555, 25.5216)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E8D #7C8D1E
analogous
#1E448D #2F1E8D #661E8D
triadic
#2F1E8D #8D2F1E #1E8D2F
tetradic
#2F1E8D #8D1E44 #7C8D1E #1E8D66
square
#2F1E8D #8D1E44 #7C8D1E #1E8D66
split-complementary
#2F1E8D #8D661E #448D1E
monochromatic
#0D0928 #1E135B #2F1E8D #4029BF #624CD9

Accessibility & contrast

On white

12.42
#2F1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1E8D
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E8D#FFFFFF#000000##FFFFFF
##2F1E8D1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1e8d;
/* rgb */ color: rgb(47, 30, 141);
/* oklch */ color: oklch(34.4% 0.170 279.5);
Tailwind
colors: {
  custom: {
    50: '#755daf',
    500: '#2f1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e8d;
$custom-light: #755daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e8d",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 249.189,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34385,
    "c": 0.17029,
    "h": 279.5
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#2F1E8D
secondary
#AABC4B
accent
#E840CE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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