#2E2292#2E2292

#2E2292 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.173 H 277.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2E2292
RGBrgb(46, 34, 146)
HSLhsl(246, 62%, 35%)
HSVhsv(246, 77%, 57%)
CMYKcmyk(68.5%, 76.7%, 0%, 42.7%)
CIE-LABlab(23.00, 40.34, -59.27)
CIE-LCHlch(23.00, 71.70, 304.24°)
OKLaboklab(35.38% 0.023 -0.1712)
OKLCHoklch(35.38% 0.173 277.7)
XYZxyz(6.8854, 3.7996, 27.5591)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2292 #869222
analogous
#224E92 #2E2292 #662292
triadic
#2E2292 #922E22 #22922E
tetradic
#2E2292 #92224E #869222 #229266
square
#2E2292 #92224E #869222 #229266
split-complementary
#2E2292 #926622 #4E9222
monochromatic
#0F0B2F #1E1660 #2E2292 #3E2EC4 #6457D8

Accessibility & contrast

On white

11.93
#2E2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2E2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2292
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2292#FFFFFF#000000##FFFFFF
##2E22921.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2292;
/* rgb */ color: rgb(46, 34, 146);
/* oklch */ color: oklch(35.4% 0.173 277.7);
Tailwind
colors: {
  custom: {
    50: '#765fb3',
    500: '#2e2292',
    950: '#000000',
  },
}
SCSS
$custom: #2e2292;
$custom-light: #765fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2292",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 246.429,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35378,
    "c": 0.17278,
    "h": 277.7
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#2E2292
secondary
#B1BC54
accent
#E543D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2292

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

Preview Lab → · Contrast checker → · Palette generator →

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