#2E2C81#2E2C81

#2E2C81 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.139 H 277.6°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2E2C81
RGBrgb(46, 44, 129)
HSLhsl(241, 49%, 34%)
HSVhsv(241, 66%, 51%)
CMYKcmyk(64.3%, 65.9%, 0%, 49.4%)
CIE-LABlab(23.56, 28.44, -47.74)
CIE-LCHlch(23.56, 55.57, 300.78°)
OKLaboklab(35.28% 0.0184 -0.1375)
OKLCHoklch(35.28% 0.139 277.6)
XYZxyz(5.9886, 3.9667, 21.2147)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2C81 #7F812C
analogous
#2C5581 #2E2C81 #592C81
triadic
#2E2C81 #812E2C #2C812E
tetradic
#2E2C81 #812C55 #7F812C #2C8159
square
#2E2C81 #812C55 #7F812C #2C8159
split-complementary
#2E2C81 #81592C #55812C
monochromatic
#0D0D26 #1E1C53 #2E2C81 #3E3CAF #615FC8

Accessibility & contrast

On white

11.71
#2E2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2C81
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2C81#FFFFFF#000000##FFFFFF
##2E2C811.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2c81;
/* rgb */ color: rgb(46, 44, 129);
/* oklch */ color: oklch(35.3% 0.139 277.6);
Tailwind
colors: {
  custom: {
    50: '#7165a6',
    500: '#2e2c81',
    950: '#000000',
  },
}
SCSS
$custom: #2e2c81;
$custom-light: #7165a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2c81",
  "rgb": {
    "r": 46,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 241.412,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35278,
    "c": 0.13872,
    "h": 277.6
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#2E2C81
secondary
#ADAF5A
accent
#D94FD5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2E2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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