#2E2296#2E2296

#2E2296 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.178 H 277.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2E2296
RGBrgb(46, 34, 150)
HSLhsl(246, 63%, 36%)
HSVhsv(246, 77%, 59%)
CMYKcmyk(69.3%, 77.3%, 0%, 41.2%)
CIE-LABlab(23.43, 41.64, -61.04)
CIE-LCHlch(23.43, 73.89, 304.30°)
OKLaboklab(35.81% 0.0221 -0.1764)
OKLCHoklch(35.81% 0.178 277.1)
XYZxyz(7.2020, 3.9263, 29.2266)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2296 #8A9622
analogous
#225096 #2E2296 #682296
triadic
#2E2296 #962E22 #22962E
tetradic
#2E2296 #962250 #8A9622 #229668
square
#2E2296 #962250 #8A9622 #229668
split-complementary
#2E2296 #966822 #509622
monochromatic
#0F0B32 #1F1764 #2E2296 #3D2DC8 #6659D9

Accessibility & contrast

On white

11.76
#2E2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2296
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2296#FFFFFF#000000##FFFFFF
##2E22961.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2296;
/* rgb */ color: rgb(46, 34, 150);
/* oklch */ color: oklch(35.8% 0.178 277.1);
Tailwind
colors: {
  custom: {
    50: '#7760b6',
    500: '#2e2296',
    950: '#000000',
  },
}
SCSS
$custom: #2e2296;
$custom-light: #7760b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2296",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 246.207,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35807,
    "c": 0.17775,
    "h": 277.1
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#2E2296
secondary
#B3BE56
accent
#E642D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2E2296

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

Preview Lab → · Contrast checker → · Palette generator →

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