#2E1E7F#2E1E7F

#2E1E7F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.153 H 281.4°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2E1E7F
RGBrgb(46, 30, 127)
HSLhsl(250, 62%, 31%)
HSVhsv(250, 76%, 50%)
CMYKcmyk(63.8%, 76.4%, 0%, 50.2%)
CIE-LABlab(20.21, 36.39, -51.97)
CIE-LCHlch(20.21, 63.44, 305.00°)
OKLaboklab(32.81% 0.0302 -0.1499)
OKLCHoklch(32.81% 0.153 281.4)
XYZxyz(5.4205, 3.0413, 20.3759)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E7F #6F7F1E
analogous
#1E3E7F #2E1E7F #5E1E7F
triadic
#2E1E7F #7F2E1E #1E7F2E
tetradic
#2E1E7F #7F1E3E #6F7F1E #1E7F5E
square
#2E1E7F #7F1E3E #6F7F1E #1E7F5E
split-complementary
#2E1E7F #7F5E1E #3E7F1E
monochromatic
#0A071C #1C124D #2E1E7F #402AB1 #5C44D3

Accessibility & contrast

On white

13.06
#2E1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E1E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E7F
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E7F#FFFFFF#000000##FFFFFF
##2E1E7F1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1e7f;
/* rgb */ color: rgb(46, 30, 127);
/* oklch */ color: oklch(32.8% 0.153 281.4);
Tailwind
colors: {
  custom: {
    50: '#725ca5',
    500: '#2e1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e7f;
$custom-light: #725ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e7f",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 249.897,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3281,
    "c": 0.1529,
    "h": 281.4
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

primary
#2E1E7F
secondary
#A0B247
accent
#E543CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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