#2E2A96#2E2A96

#2E2A96 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.169 H 275.8°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2E2A96
RGBrgb(46, 42, 150)
HSLhsl(242, 56%, 38%)
HSVhsv(242, 72%, 59%)
CMYKcmyk(69.3%, 72%, 0%, 41.2%)
CIE-LABlab(25.07, 37.03, -58.33)
CIE-LCHlch(25.07, 69.09, 302.41°)
OKLaboklab(36.97% 0.0172 -0.1685)
OKLCHoklch(36.97% 0.169 275.8)
XYZxyz(7.4579, 4.4381, 29.3119)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A96 #92962A
analogous
#2A5C96 #2E2A96 #642A96
triadic
#2E2A96 #962E2A #2A962E
tetradic
#2E2A96 #962A5C #92962A #2A9664
square
#2E2A96 #962A5C #92962A #2A9664
split-complementary
#2E2A96 #96642A #5C962A
monochromatic
#110F36 #1F1D66 #2E2A96 #3D37C6 #6A66D4

Accessibility & contrast

On white

11.12
#2E2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2E2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A96
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A96#FFFFFF#000000##FFFFFF
##2E2A961.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e2a96;
/* rgb */ color: rgb(46, 42, 150);
/* oklch */ color: oklch(37.0% 0.169 275.8);
Tailwind
colors: {
  custom: {
    50: '#7665b6',
    500: '#2e2a96',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a96;
$custom-light: #7665b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a96",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 242.222,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36974,
    "c": 0.1694,
    "h": 275.8
  },
  "luminance": 0.04439
}

Semantic roles & 50–950 ramp

primary
#2E2A96
secondary
#B7BA61
accent
#E048DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2E2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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