#2F1E8C#2F1E8C

#2F1E8C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.169 H 279.7°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2F1E8C
RGBrgb(47, 30, 140)
HSLhsl(249, 65%, 33%)
HSVhsv(249, 79%, 55%)
CMYKcmyk(66.4%, 78.6%, 0%, 45.1%)
CIE-LABlab(21.67, 40.69, -57.73)
CIE-LCHlch(21.67, 70.63, 305.18°)
OKLaboklab(34.28% 0.0284 -0.1667)
OKLCHoklch(34.28% 0.169 279.7)
XYZxyz(6.3687, 3.4258, 25.1315)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E8C #7B8C1E
analogous
#1E448C #2F1E8C #661E8C
triadic
#2F1E8C #8C2F1E #1E8C2F
tetradic
#2F1E8C #8C1E44 #7B8C1E #1E8C66
square
#2F1E8C #8C1E44 #7B8C1E #1E8C66
split-complementary
#2F1E8C #8C661E #448C1E
monochromatic
#0D0827 #1E135A #2F1E8C #4029BE #624CD9

Accessibility & contrast

On white

12.46
#2F1E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1E8C
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E8C#FFFFFF#000000##FFFFFF
##2F1E8C1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1e8c;
/* rgb */ color: rgb(47, 30, 140);
/* oklch */ color: oklch(34.3% 0.169 279.7);
Tailwind
colors: {
  custom: {
    50: '#755daf',
    500: '#2f1e8c',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e8c;
$custom-light: #755daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e8c",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 249.273,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34277,
    "c": 0.16906,
    "h": 279.7
  },
  "luminance": 0.03426
}

Semantic roles & 50–950 ramp

primary
#2F1E8C
secondary
#AABB4B
accent
#E840CE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F1E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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