#2F1E8A#2F1E8A

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

Color values

HEX#2F1E8A
RGBrgb(47, 30, 138)
HSLhsl(249, 64%, 33%)
HSVhsv(249, 78%, 54%)
CMYKcmyk(65.9%, 78.3%, 0%, 45.9%)
CIE-LABlab(21.46, 40.06, -56.83)
CIE-LCHlch(21.46, 69.53, 305.18°)
OKLaboklab(34.06% 0.0289 -0.164)
OKLCHoklch(34.06% 0.167 280)
XYZxyz(6.2225, 3.3674, 24.3619)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E8A #798A1E
analogous
#1E438A #2F1E8A #651E8A
triadic
#2F1E8A #8A2F1E #1E8A2F
tetradic
#2F1E8A #8A1E43 #798A1E #1E8A65
square
#2F1E8A #8A1E43 #798A1E #1E8A65
split-complementary
#2F1E8A #8A651E #438A1E
monochromatic
#0D0825 #1E1358 #2F1E8A #4029BC #614BD8

Accessibility & contrast

On white

12.55
#2F1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E8A
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E8A#FFFFFF#000000##FFFFFF
##2F1E8A1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1e8a;
/* rgb */ color: rgb(47, 30, 138);
/* oklch */ color: oklch(34.1% 0.167 280.0);
Tailwind
colors: {
  custom: {
    50: '#755dad',
    500: '#2f1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e8a;
$custom-light: #755dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e8a",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 249.444,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34061,
    "c": 0.16658,
    "h": 280
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#2F1E8A
secondary
#A8BA4A
accent
#E741CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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