#2E227A#2E227A

#2E227A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.142 H 281.4°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#2E227A
RGBrgb(46, 34, 122)
HSLhsl(248, 56%, 31%)
HSVhsv(248, 72%, 48%)
CMYKcmyk(62.3%, 72.1%, 0%, 52.2%)
CIE-LABlab(20.56, 32.37, -48.22)
CIE-LCHlch(20.56, 58.08, 303.88°)
OKLaboklab(32.91% 0.0281 -0.1389)
OKLCHoklch(32.91% 0.142 281.4)
XYZxyz(5.2105, 3.1297, 18.7381)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E227A #6E7A22
analogous
#22427A #2E227A #5A227A
triadic
#2E227A #7A2E22 #227A2E
tetradic
#2E227A #7A2242 #6E7A22 #227A5A
square
#2E227A #7A2242 #6E7A22 #227A5A
split-complementary
#2E227A #7A5A22 #427A22
monochromatic
#0A071A #1C154A #2E227A #402FAA #5C4ACD

Accessibility & contrast

On white

12.92
#2E227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E227A
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E227A#FFFFFF#000000##FFFFFF
##2E227A1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e227a;
/* rgb */ color: rgb(46, 34, 122);
/* oklch */ color: oklch(32.9% 0.142 281.4);
Tailwind
colors: {
  custom: {
    50: '#705ea1',
    500: '#2e227a',
    950: '#000000',
  },
}
SCSS
$custom: #2e227a;
$custom-light: #705ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e227a",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 248.182,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32905,
    "c": 0.14175,
    "h": 281.4
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#2E227A
secondary
#9FAD4B
accent
#E048CB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E227A

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

Preview Lab → · Contrast checker → · Palette generator →

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