#2E1F80#2E1F80

#2E1F80 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.153 H 281.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2E1F80
RGBrgb(46, 31, 128)
HSLhsl(249, 61%, 31%)
HSVhsv(249, 76%, 50%)
CMYKcmyk(64.1%, 75.8%, 0%, 49.8%)
CIE-LABlab(20.51, 36.15, -52.10)
CIE-LCHlch(20.51, 63.41, 304.75°)
OKLaboklab(33.06% 0.0293 -0.1503)
OKLCHoklch(33.06% 0.153 281)
XYZxyz(5.5118, 3.1189, 20.7295)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F80 #71801F
analogous
#1F4080 #2E1F80 #5E1F80
triadic
#2E1F80 #802E1F #1F802E
tetradic
#2E1F80 #801F40 #71801F #1F805E
square
#2E1F80 #801F40 #71801F #1F805E
split-complementary
#2E1F80 #805E1F #40801F
monochromatic
#0B071D #1C134F #2E1F80 #402BB1 #5D47D2

Accessibility & contrast

On white

12.93
#2E1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1F80
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F80#FFFFFF#000000##FFFFFF
##2E1F801.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1f80;
/* rgb */ color: rgb(46, 31, 128);
/* oklch */ color: oklch(33.1% 0.153 281.0);
Tailwind
colors: {
  custom: {
    50: '#725da6',
    500: '#2e1f80',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f80;
$custom-light: #725da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f80",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 249.278,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33057,
    "c": 0.15309,
    "h": 281
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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