#2E228D#2E228D

#2E228D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.166 H 278.4°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2E228D
RGBrgb(46, 34, 141)
HSLhsl(247, 61%, 34%)
HSVhsv(247, 76%, 55%)
CMYKcmyk(67.4%, 75.9%, 0%, 44.7%)
CIE-LABlab(22.47, 38.70, -57.04)
CIE-LCHlch(22.47, 68.93, 304.16°)
OKLaboklab(34.85% 0.0242 -0.1647)
OKLCHoklch(34.85% 0.166 278.4)
XYZxyz(6.5049, 3.6474, 25.5554)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E228D #818D22
analogous
#224C8D #2E228D #64228D
triadic
#2E228D #8D2E22 #228D2E
tetradic
#2E228D #8D224C #818D22 #228D64
square
#2E228D #8D224C #818D22 #228D64
split-complementary
#2E228D #8D6422 #4C8D22
monochromatic
#0E0A2A #1E165C #2E228D #3E2EBE #6254D6

Accessibility & contrast

On white

12.14
#2E228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E228D
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E228D#FFFFFF#000000##FFFFFF
##2E228D1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e228d;
/* rgb */ color: rgb(46, 34, 141);
/* oklch */ color: oklch(34.8% 0.166 278.4);
Tailwind
colors: {
  custom: {
    50: '#755faf',
    500: '#2e228d',
    950: '#000000',
  },
}
SCSS
$custom: #2e228d;
$custom-light: #755faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e228d",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 246.729,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34847,
    "c": 0.16649,
    "h": 278.4
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

primary
#2E228D
secondary
#AEB951
accent
#E444D2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E228D

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

Preview Lab → · Contrast checker → · Palette generator →

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