#2F1E8E#2F1E8E

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

Color values

HEX#2F1E8E
RGBrgb(47, 30, 142)
HSLhsl(249, 65%, 34%)
HSVhsv(249, 79%, 56%)
CMYKcmyk(66.9%, 78.9%, 0%, 44.3%)
CIE-LABlab(21.89, 41.33, -58.62)
CIE-LCHlch(21.89, 71.72, 305.19°)
OKLaboklab(34.49% 0.0278 -0.1693)
OKLCHoklch(34.49% 0.172 279.3)
XYZxyz(6.5175, 3.4853, 25.9152)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E8E #7D8E1E
analogous
#1E458E #2F1E8E #671E8E
triadic
#2F1E8E #8E2F1E #1E8E2F
tetradic
#2F1E8E #8E1E45 #7D8E1E #1E8E67
square
#2F1E8E #8E1E45 #7D8E1E #1E8E67
split-complementary
#2F1E8E #8E671E #458E1E
monochromatic
#0E0929 #1E135B #2F1E8E #4029C1 #624DD9

Accessibility & contrast

On white

12.37
#2F1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F1E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E8E
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E8E#FFFFFF#000000##FFFFFF
##2F1E8E1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1e8e;
/* rgb */ color: rgb(47, 30, 142);
/* oklch */ color: oklch(34.5% 0.172 279.3);
Tailwind
colors: {
  custom: {
    50: '#765db0',
    500: '#2f1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e8e;
$custom-light: #765db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e8e",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 249.107,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34493,
    "c": 0.17152,
    "h": 279.3
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#2F1E8E
secondary
#ABBC4C
accent
#E840CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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