#2E2E81#2E2E81

#2E2E81 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.136 H 277.0°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2E2E81
RGBrgb(46, 46, 129)
HSLhsl(240, 47%, 34%)
HSVhsv(240, 64%, 51%)
CMYKcmyk(64.3%, 64.3%, 0%, 49.4%)
CIE-LABlab(24.06, 27.12, -46.92)
CIE-LCHlch(24.06, 54.19, 300.03°)
OKLaboklab(35.64% 0.0165 -0.1351)
OKLCHoklch(35.64% 0.136 277)
XYZxyz(6.0649, 4.1193, 21.2401)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2E81 #81812E
analogous
#2E5881 #2E2E81 #582E81
triadic
#2E2E81 #812E2E #2E812E
tetradic
#2E2E81 #812E58 #81812E #2E8158
square
#2E2E81 #812E58 #81812E #2E8158
split-complementary
#2E2E81 #81582E #58812E
monochromatic
#0E0E27 #1E1E54 #2E2E81 #3E3EAE #6262C7

Accessibility & contrast

On white

11.51
#2E2E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2E2E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2E81
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2E81#FFFFFF#000000##FFFFFF
##2E2E811.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2e81;
/* rgb */ color: rgb(46, 46, 129);
/* oklch */ color: oklch(35.6% 0.136 277.0);
Tailwind
colors: {
  custom: {
    50: '#7167a6',
    500: '#2e2e81',
    950: '#000000',
  },
}
SCSS
$custom: #2e2e81;
$custom-light: #7167a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2e81",
  "rgb": {
    "r": 46,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 240,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35645,
    "c": 0.1361,
    "h": 277
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#2E2E81
secondary
#AEAE5D
accent
#D751D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E2E81

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

Preview Lab → · Contrast checker → · Palette generator →

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