#2E227D#2E227D

#2E227D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.146 H 280.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2E227D
RGBrgb(46, 34, 125)
HSLhsl(248, 57%, 31%)
HSVhsv(248, 73%, 49%)
CMYKcmyk(63.2%, 72.8%, 0%, 51%)
CIE-LABlab(20.85, 33.38, -49.65)
CIE-LCHlch(20.85, 59.83, 303.91°)
OKLaboklab(33.2% 0.0276 -0.1431)
OKLCHoklch(33.2% 0.146 280.9)
XYZxyz(5.3992, 3.2052, 19.7322)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E227D #717D22
analogous
#22437D #2E227D #5B227D
triadic
#2E227D #7D2E22 #227D2E
tetradic
#2E227D #7D2243 #717D22 #227D5B
square
#2E227D #7D2243 #717D22 #227D5B
split-complementary
#2E227D #7D5B22 #437D22
monochromatic
#0B081D #1C154D #2E227D #402FAD #5D4BCE

Accessibility & contrast

On white

12.80
#2E227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E227D
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E227D#FFFFFF#000000##FFFFFF
##2E227D1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e227d;
/* rgb */ color: rgb(46, 34, 125);
/* oklch */ color: oklch(33.2% 0.146 280.9);
Tailwind
colors: {
  custom: {
    50: '#715ea4',
    500: '#2e227d',
    950: '#000000',
  },
}
SCSS
$custom: #2e227d;
$custom-light: #715ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e227d",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 247.912,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33203,
    "c": 0.14575,
    "h": 280.9
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#2E227D
secondary
#A2B04B
accent
#E047CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E227D

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

Preview Lab → · Contrast checker → · Palette generator →

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