#2E227B#2E227B

#2E227B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.143 H 281.3°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2E227B
RGBrgb(46, 34, 123)
HSLhsl(248, 57%, 31%)
HSVhsv(248, 72%, 48%)
CMYKcmyk(62.6%, 72.4%, 0%, 51.8%)
CIE-LABlab(20.65, 32.71, -48.70)
CIE-LCHlch(20.65, 58.66, 303.89°)
OKLaboklab(33% 0.028 -0.1403)
OKLCHoklch(33% 0.143 281.3)
XYZxyz(5.2728, 3.1546, 19.0661)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E227B #6F7B22
analogous
#22427B #2E227B #5A227B
triadic
#2E227B #7B2E22 #227B2E
tetradic
#2E227B #7B2242 #6F7B22 #227B5A
square
#2E227B #7B2242 #6F7B22 #227B5A
split-complementary
#2E227B #7B5A22 #427B22
monochromatic
#0A071B #1C154B #2E227B #402FAB #5C4ACD

Accessibility & contrast

On white

12.88
#2E227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E227B
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E227B#FFFFFF#000000##FFFFFF
##2E227B1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e227b;
/* rgb */ color: rgb(46, 34, 123);
/* oklch */ color: oklch(33.0% 0.143 281.3);
Tailwind
colors: {
  custom: {
    50: '#715ea2',
    500: '#2e227b',
    950: '#000000',
  },
}
SCSS
$custom: #2e227b;
$custom-light: #715ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e227b",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 248.09,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33004,
    "c": 0.14309,
    "h": 281.3
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#2E227B
secondary
#A0AE4B
accent
#E048CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E227B

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

Preview Lab → · Contrast checker → · Palette generator →

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