#2E229C#2E229C

#2E229C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.185 H 276.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2E229C
RGBrgb(46, 34, 156)
HSLhsl(246, 64%, 37%)
HSVhsv(246, 78%, 61%)
CMYKcmyk(70.5%, 78.2%, 0%, 38.8%)
CIE-LABlab(24.08, 43.57, -63.64)
CIE-LCHlch(24.08, 77.13, 304.40°)
OKLaboklab(36.46% 0.0206 -0.184)
OKLCHoklch(36.46% 0.185 276.4)
XYZxyz(7.6975, 4.1245, 31.8365)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E229C #909C22
analogous
#22539C #2E229C #6B229C
triadic
#2E229C #9C2E22 #229C2E
tetradic
#2E229C #9C2253 #909C22 #229C6B
square
#2E229C #9C2253 #909C22 #229C6B
split-complementary
#2E229C #9C6B22 #539C22
monochromatic
#100C38 #1F176A #2E229C #3D2DCE #695DDC

Accessibility & contrast

On white

11.51
#2E229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2E229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E229C
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E229C#FFFFFF#000000##FFFFFF
##2E229C1.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e229c;
/* rgb */ color: rgb(46, 34, 156);
/* oklch */ color: oklch(36.5% 0.185 276.4);
Tailwind
colors: {
  custom: {
    50: '#7860ba',
    500: '#2e229c',
    950: '#000000',
  },
}
SCSS
$custom: #2e229c;
$custom-light: #7860ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e229c",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 245.902,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36459,
    "c": 0.18511,
    "h": 276.4
  },
  "luminance": 0.04125
}

Semantic roles & 50–950 ramp

primary
#2E229C
secondary
#B6C05A
accent
#E741D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2E229C

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

Preview Lab → · Contrast checker → · Palette generator →

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