#2E229B#2E229B

#2E229B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.184 H 276.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#2E229B
RGBrgb(46, 34, 155)
HSLhsl(246, 64%, 37%)
HSVhsv(246, 78%, 61%)
CMYKcmyk(70.3%, 78.1%, 0%, 39.2%)
CIE-LABlab(23.97, 43.25, -63.21)
CIE-LCHlch(23.97, 76.59, 304.38°)
OKLaboklab(36.35% 0.0209 -0.1827)
OKLCHoklch(36.35% 0.184 276.5)
XYZxyz(7.6132, 4.0908, 31.3924)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E229B #8F9B22
analogous
#22539B #2E229B #6A229B
triadic
#2E229B #9B2E22 #229B2E
tetradic
#2E229B #9B2253 #8F9B22 #229B6A
square
#2E229B #9B2253 #8F9B22 #229B6A
split-complementary
#2E229B #9B6A22 #539B22
monochromatic
#100C37 #1F1769 #2E229B #3D2DCD #695CDB

Accessibility & contrast

On white

11.55
#2E229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E229B
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E229B#FFFFFF#000000##FFFFFF
##2E229B1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e229b;
/* rgb */ color: rgb(46, 34, 155);
/* oklch */ color: oklch(36.4% 0.184 276.5);
Tailwind
colors: {
  custom: {
    50: '#7860ba',
    500: '#2e229b',
    950: '#000000',
  },
}
SCSS
$custom: #2e229b;
$custom-light: #7860ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e229b",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 245.95,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3635,
    "c": 0.18389,
    "h": 276.5
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#2E229B
secondary
#B6C059
accent
#E741D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2E229B

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

Preview Lab → · Contrast checker → · Palette generator →

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