#2E1F7F#2E1F7F

#2E1F7F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.152 H 281.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2E1F7F
RGBrgb(46, 31, 127)
HSLhsl(249, 61%, 31%)
HSVhsv(249, 76%, 50%)
CMYKcmyk(63.8%, 75.6%, 0%, 50.2%)
CIE-LABlab(20.41, 35.82, -51.64)
CIE-LCHlch(20.41, 62.84, 304.75°)
OKLaboklab(32.95% 0.0295 -0.1489)
OKLCHoklch(32.95% 0.152 281.2)
XYZxyz(5.4463, 3.0927, 20.3845)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F7F #707F1F
analogous
#1F407F #2E1F7F #5E1F7F
triadic
#2E1F7F #7F2E1F #1F7F2E
tetradic
#2E1F7F #7F1F40 #707F1F #1F7F5E
square
#2E1F7F #7F1F40 #707F1F #1F7F5E
split-complementary
#2E1F7F #7F5E1F #407F1F
monochromatic
#0A071D #1C134E #2E1F7F #402BB0 #5C46D2

Accessibility & contrast

On white

12.97
#2E1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F7F
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F7F#FFFFFF#000000##FFFFFF
##2E1F7F1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1f7f;
/* rgb */ color: rgb(46, 31, 127);
/* oklch */ color: oklch(33.0% 0.152 281.2);
Tailwind
colors: {
  custom: {
    50: '#725da5',
    500: '#2e1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f7f;
$custom-light: #725da5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f7f",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 249.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32954,
    "c": 0.1518,
    "h": 281.2
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#2E1F7F
secondary
#A1B248
accent
#E444CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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