#2E2996#2E2996

#2E2996 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.171 H 276.0°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#2E2996
RGBrgb(46, 41, 150)
HSLhsl(243, 57%, 37%)
HSVhsv(243, 73%, 59%)
CMYKcmyk(69.3%, 72.7%, 0%, 41.2%)
CIE-LABlab(24.85, 37.63, -58.69)
CIE-LCHlch(24.85, 69.72, 302.67°)
OKLaboklab(36.82% 0.0179 -0.1696)
OKLCHoklch(36.82% 0.171 276)
XYZxyz(7.4229, 4.3681, 29.3002)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2996 #919629
analogous
#295B96 #2E2996 #642996
triadic
#2E2996 #962E29 #29962E
tetradic
#2E2996 #96295B #919629 #299664
square
#2E2996 #96295B #919629 #299664
split-complementary
#2E2996 #966429 #5B9629
monochromatic
#110F36 #1F1C66 #2E2996 #3D36C6 #6A65D5

Accessibility & contrast

On white

11.21
#2E2996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2E2996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2996
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2996#FFFFFF#000000##FFFFFF
##2E29961.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e2996;
/* rgb */ color: rgb(46, 41, 150);
/* oklch */ color: oklch(36.8% 0.171 276.0);
Tailwind
colors: {
  custom: {
    50: '#7664b6',
    500: '#2e2996',
    950: '#000000',
  },
}
SCSS
$custom: #2e2996;
$custom-light: #7664b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2996",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 242.752,
    "s": 57.068,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36819,
    "c": 0.1705,
    "h": 276
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#2E2996
secondary
#B7BB60
accent
#E047D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2E2996

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

Preview Lab → · Contrast checker → · Palette generator →

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