#2E228B#2E228B

#2E228B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.164 H 278.6°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2E228B
RGBrgb(46, 34, 139)
HSLhsl(247, 61%, 34%)
HSVhsv(247, 76%, 55%)
CMYKcmyk(66.9%, 75.5%, 0%, 45.5%)
CIE-LABlab(22.26, 38.04, -56.14)
CIE-LCHlch(22.26, 67.81, 304.12°)
OKLaboklab(34.64% 0.0246 -0.1621)
OKLCHoklch(34.64% 0.164 278.6)
XYZxyz(6.3574, 3.5885, 24.7787)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E228B #7F8B22
analogous
#224B8B #2E228B #63228B
triadic
#2E228B #8B2E22 #228B2E
tetradic
#2E228B #8B224B #7F8B22 #228B63
square
#2E228B #8B224B #7F8B22 #228B63
split-complementary
#2E228B #8B6322 #4B8B22
monochromatic
#0D0A29 #1E165A #2E228B #3E2EBC #6153D5

Accessibility & contrast

On white

12.22
#2E228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2E228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E228B
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E228B#FFFFFF#000000##FFFFFF
##2E228B1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e228b;
/* rgb */ color: rgb(46, 34, 139);
/* oklch */ color: oklch(34.6% 0.164 278.6);
Tailwind
colors: {
  custom: {
    50: '#745fae',
    500: '#2e228b',
    950: '#000000',
  },
}
SCSS
$custom: #2e228b;
$custom-light: #745fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e228b",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 246.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34637,
    "c": 0.16395,
    "h": 278.6
  },
  "luminance": 0.03589
}

Semantic roles & 50–950 ramp

primary
#2E228B
secondary
#ADB850
accent
#E444D2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E228B

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

Preview Lab → · Contrast checker → · Palette generator →

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