#2E229A#2E229A

#2E229A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.183 H 276.6°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2E229A
RGBrgb(46, 34, 154)
HSLhsl(246, 64%, 37%)
HSVhsv(246, 78%, 60%)
CMYKcmyk(70.1%, 77.9%, 0%, 39.6%)
CIE-LABlab(23.86, 42.93, -62.78)
CIE-LCHlch(23.86, 76.05, 304.37°)
OKLaboklab(36.24% 0.0211 -0.1814)
OKLCHoklch(36.24% 0.183 276.6)
XYZxyz(7.5296, 4.0573, 30.9519)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E229A #8E9A22
analogous
#22529A #2E229A #6A229A
triadic
#2E229A #9A2E22 #229A2E
tetradic
#2E229A #9A2252 #8E9A22 #229A6A
square
#2E229A #9A2252 #8E9A22 #229A6A
split-complementary
#2E229A #9A6A22 #529A22
monochromatic
#100C36 #1F1768 #2E229A #3D2DCC #685BDB

Accessibility & contrast

On white

11.59
#2E229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2E229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E229A
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E229A#FFFFFF#000000##FFFFFF
##2E229A1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e229a;
/* rgb */ color: rgb(46, 34, 154);
/* oklch */ color: oklch(36.2% 0.183 276.6);
Tailwind
colors: {
  custom: {
    50: '#7760b9',
    500: '#2e229a',
    950: '#000000',
  },
}
SCSS
$custom: #2e229a;
$custom-light: #7760b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e229a",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 246,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36241,
    "c": 0.18267,
    "h": 276.6
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#2E229A
secondary
#B5BF58
accent
#E741D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2E229A

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

Preview Lab → · Contrast checker → · Palette generator →

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