#2F1EAC#2F1EAC

#2F1EAC is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.9% C 0.207 H 275.4°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2F1EAC
RGBrgb(47, 30, 172)
HSLhsl(247, 70%, 40%)
HSVhsv(247, 83%, 67%)
CMYKcmyk(72.7%, 82.6%, 0%, 32.5%)
CIE-LABlab(25.29, 50.59, -71.34)
CIE-LCHlch(25.29, 87.46, 305.34°)
OKLaboklab(37.85% 0.0194 -0.2062)
OKLCHoklch(37.85% 0.207 275.4)
XYZxyz(9.0805, 4.5106, 39.4138)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1EAC #9BAC1E
analogous
#1E54AC #2F1EAC #761EAC
triadic
#2F1EAC #AC2F1E #1EAC2F
tetradic
#2F1EAC #AC1E54 #9BAC1E #1EAC76
square
#2F1EAC #AC1E54 #9BAC1E #1EAC76
split-complementary
#2F1EAC #AC761E #54AC1E
monochromatic
#130C44 #211578 #2F1EAC #422DDA #7161E3

Accessibility & contrast

On white

11.04
#2F1EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F1EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1EAC
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1EAC#FFFFFF#000000##FFFFFF
##2F1EAC1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B0
Deuteranopia (green-blind)
#0036AA
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f1eac;
/* rgb */ color: rgb(47, 30, 172);
/* oklch */ color: oklch(37.9% 0.207 275.4);
Tailwind
colors: {
  custom: {
    50: '#7c5fc6',
    500: '#2f1eac',
    950: '#000000',
  },
}
SCSS
$custom: #2f1eac;
$custom-light: #7c5fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1eac",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 172
  },
  "hsl": {
    "h": 247.183,
    "s": 70.297,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37854,
    "c": 0.20716,
    "h": 275.4
  },
  "luminance": 0.04511
}

Semantic roles & 50–950 ramp

primary
#2F1EAC
secondary
#BBC85E
accent
#ED3BD8
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F1EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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