#2E1B8F#2E1B8F

#2E1B8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.176 H 279.1°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#2E1B8F
RGBrgb(46, 27, 143)
HSLhsl(250, 68%, 33%)
HSVhsv(250, 81%, 56%)
CMYKcmyk(67.8%, 81.1%, 0%, 43.9%)
CIE-LABlab(21.38, 43.07, -60.08)
CIE-LCHlch(21.38, 73.92, 305.64°)
OKLaboklab(34.15% 0.0277 -0.1735)
OKLCHoklch(34.15% 0.176 279.1)
XYZxyz(6.4750, 3.3473, 26.2862)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B8F #7C8F1B
analogous
#1B428F #2E1B8F #681B8F
triadic
#2E1B8F #8F2E1B #1B8F2E
tetradic
#2E1B8F #8F1B42 #7C8F1B #1B8F68
square
#2E1B8F #8F1B42 #7C8F1B #1B8F68
split-complementary
#2E1B8F #8F681B #428F1B
monochromatic
#0D0828 #1D115C #2E1B8F #3F25C2 #6048DC

Accessibility & contrast

On white

12.58
#2E1B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E1B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B8F
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B8F#FFFFFF#000000##FFFFFF
##2E1B8F1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1b8f;
/* rgb */ color: rgb(46, 27, 143);
/* oklch */ color: oklch(34.2% 0.176 279.1);
Tailwind
colors: {
  custom: {
    50: '#765bb1',
    500: '#2e1b8f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b8f;
$custom-light: #765bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b8f",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 249.828,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34151,
    "c": 0.1757,
    "h": 279.1
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#2E1B8F
secondary
#ABBE48
accent
#EB3DCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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