#2E226D#2E226D

#2E226D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.124 H 284.1°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#2E226D
RGBrgb(46, 34, 109)
HSLhsl(250, 52%, 28%)
HSVhsv(250, 69%, 43%)
CMYKcmyk(57.8%, 68.8%, 0%, 57.3%)
CIE-LABlab(19.34, 27.97, -41.84)
CIE-LCHlch(19.34, 50.33, 303.77°)
OKLaboklab(31.66% 0.0302 -0.1202)
OKLCHoklch(31.66% 0.124 284.1)
XYZxyz(4.4582, 2.8288, 14.7761)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E226D #616D22
analogous
#223B6D #2E226D #53226D
triadic
#2E226D #6D2E22 #226D2E
tetradic
#2E226D #6D223B #616D22 #226D53
square
#2E226D #6D223B #616D22 #226D53
split-complementary
#2E226D #6D5322 #3B6D22
monochromatic
#0A0717 #1A133E #2E226D #42319C #5945C5

Accessibility & contrast

On white

13.41
#2E226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E226D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E226D
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E226D#FFFFFF#000000##FFFFFF
##2E226D1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#113544
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e226d;
/* rgb */ color: rgb(46, 34, 109);
/* oklch */ color: oklch(31.7% 0.124 284.1);
Tailwind
colors: {
  custom: {
    50: '#6e5e98',
    500: '#2e226d',
    950: '#000000',
  },
}
SCSS
$custom: #2e226d;
$custom-light: #6e5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2e226d",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 249.6,
    "s": 52.448,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31659,
    "c": 0.12394,
    "h": 284.1
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#2E226D
secondary
#93A14A
accent
#DC4CC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2E226D

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

Preview Lab → · Contrast checker → · Palette generator →

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