#2E229D#2E229D

#2E229D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.186 H 276.3°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#2E229D
RGBrgb(46, 34, 157)
HSLhsl(246, 64%, 37%)
HSVhsv(246, 78%, 62%)
CMYKcmyk(70.7%, 78.3%, 0%, 38.4%)
CIE-LABlab(24.19, 43.89, -64.07)
CIE-LCHlch(24.19, 77.67, 304.41°)
OKLaboklab(36.57% 0.0204 -0.1852)
OKLCHoklch(36.57% 0.186 276.3)
XYZxyz(7.7826, 4.1585, 32.2843)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E229D #919D22
analogous
#22539D #2E229D #6C229D
triadic
#2E229D #9D2E22 #229D2E
tetradic
#2E229D #9D2253 #919D22 #229D6C
square
#2E229D #9D2253 #919D22 #229D6C
split-complementary
#2E229D #9D6C22 #539D22
monochromatic
#110C38 #1F176B #2E229D #3D2DCF #6A5DDC

Accessibility & contrast

On white

11.46
#2E229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2E229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E229D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E229D#FFFFFF#000000##FFFFFF
##2E229D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e229d;
/* rgb */ color: rgb(46, 34, 157);
/* oklch */ color: oklch(36.6% 0.186 276.3);
Tailwind
colors: {
  custom: {
    50: '#7860bb',
    500: '#2e229d',
    950: '#000000',
  },
}
SCSS
$custom: #2e229d;
$custom-light: #7860bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e229d",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 245.854,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36569,
    "c": 0.18632,
    "h": 276.3
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

primary
#2E229D
secondary
#B7C15A
accent
#E740D7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2E229D

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

Preview Lab → · Contrast checker → · Palette generator →

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