#2E229E#2E229E

#2E229E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.188 H 276.2°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2E229E
RGBrgb(46, 34, 158)
HSLhsl(246, 65%, 38%)
HSVhsv(246, 78%, 62%)
CMYKcmyk(70.9%, 78.5%, 0%, 38%)
CIE-LABlab(24.30, 44.21, -64.50)
CIE-LCHlch(24.30, 78.20, 304.43°)
OKLaboklab(36.68% 0.0201 -0.1865)
OKLCHoklch(36.68% 0.188 276.2)
XYZxyz(7.8683, 4.1928, 32.7358)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E229E #929E22
analogous
#22549E #2E229E #6C229E
triadic
#2E229E #9E2E22 #229E2E
tetradic
#2E229E #9E2254 #929E22 #229E6C
square
#2E229E #9E2254 #929E22 #229E6C
split-complementary
#2E229E #9E6C22 #549E22
monochromatic
#110C39 #1F176C #2E229E #3D2DD0 #6A5EDC

Accessibility & contrast

On white

11.42
#2E229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2E229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E229E
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E229E#FFFFFF#000000##FFFFFF
##2E229E1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e229e;
/* rgb */ color: rgb(46, 34, 158);
/* oklch */ color: oklch(36.7% 0.188 276.2);
Tailwind
colors: {
  custom: {
    50: '#7860bc',
    500: '#2e229e',
    950: '#000000',
  },
}
SCSS
$custom: #2e229e;
$custom-light: #7860bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e229e",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 245.806,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36678,
    "c": 0.18754,
    "h": 276.2
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#2E229E
secondary
#B7C15B
accent
#E840D7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2E229E

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

Preview Lab → · Contrast checker → · Palette generator →

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