#2E226E#2E226E

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

Color values

HEX#2E226E
RGBrgb(46, 34, 110)
HSLhsl(249, 53%, 28%)
HSVhsv(249, 69%, 43%)
CMYKcmyk(58.2%, 69.1%, 0%, 56.9%)
CIE-LABlab(19.43, 28.31, -42.34)
CIE-LCHlch(19.43, 50.93, 303.77°)
OKLaboklab(31.75% 0.03 -0.1217)
OKLCHoklch(31.75% 0.125 283.9)
XYZxyz(4.5124, 2.8504, 15.0612)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E226E #626E22
analogous
#223C6E #2E226E #54226E
triadic
#2E226E #6E2E22 #226E2E
tetradic
#2E226E #6E223C #626E22 #226E54
square
#2E226E #6E223C #626E22 #226E54
split-complementary
#2E226E #6E5422 #3C6E22
monochromatic
#0A0717 #1A143F #2E226E #42309D #5945C5

Accessibility & contrast

On white

13.37
#2E226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E226E
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E226E#FFFFFF#000000##FFFFFF
##2E226E1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#103544
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e226e;
/* rgb */ color: rgb(46, 34, 110);
/* oklch */ color: oklch(31.8% 0.125 283.9);
Tailwind
colors: {
  custom: {
    50: '#6e5e98',
    500: '#2e226e',
    950: '#000000',
  },
}
SCSS
$custom: #2e226e;
$custom-light: #6e5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2e226e",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 249.474,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31752,
    "c": 0.12534,
    "h": 283.9
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E226E

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

Preview Lab → · Contrast checker → · Palette generator →

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