#2E226F#2E226F

#2E226F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.127 H 283.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2E226F
RGBrgb(46, 34, 111)
HSLhsl(249, 53%, 28%)
HSVhsv(249, 69%, 44%)
CMYKcmyk(58.6%, 69.4%, 0%, 56.5%)
CIE-LABlab(19.52, 28.65, -42.84)
CIE-LCHlch(19.52, 51.54, 303.77°)
OKLaboklab(31.85% 0.0299 -0.1232)
OKLCHoklch(31.85% 0.127 283.6)
XYZxyz(4.5671, 2.8723, 15.3496)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E226F #636F22
analogous
#223C6F #2E226F #54226F
triadic
#2E226F #6F2E22 #226F2E
tetradic
#2E226F #6F223C #636F22 #226F54
square
#2E226F #6F223C #636F22 #226F54
split-complementary
#2E226F #6F5422 #3C6F22
monochromatic
#0A0717 #1B1440 #2E226F #41309E #5945C6

Accessibility & contrast

On white

13.34
#2E226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E226F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E226F#FFFFFF#000000##FFFFFF
##2E226F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#0F3545
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e226f;
/* rgb */ color: rgb(46, 34, 111);
/* oklch */ color: oklch(31.8% 0.127 283.6);
Tailwind
colors: {
  custom: {
    50: '#6e5e99',
    500: '#2e226f',
    950: '#000000',
  },
}
SCSS
$custom: #2e226f;
$custom-light: #6e5e99;
$custom-dark: #000000;
JSON
{
  "hex": "#2e226f",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 249.351,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31846,
    "c": 0.12674,
    "h": 283.6
  },
  "luminance": 0.02873
}

Semantic roles & 50–950 ramp

primary
#2E226F
secondary
#95A24A
accent
#DD4BC6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2E226F

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

Preview Lab → · Contrast checker → · Palette generator →

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