#2E2988#2E2988

#2E2988 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.152 H 277.6°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2E2988
RGBrgb(46, 41, 136)
HSLhsl(243, 54%, 35%)
HSVhsv(243, 70%, 53%)
CMYKcmyk(66.2%, 69.9%, 0%, 46.7%)
CIE-LABlab(23.48, 32.82, -52.25)
CIE-LCHlch(23.48, 61.71, 302.13°)
OKLaboklab(35.42% 0.0201 -0.1507)
OKLCHoklch(35.42% 0.152 277.6)
XYZxyz(6.3621, 3.9438, 23.7137)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2988 #838829
analogous
#295488 #2E2988 #5E2988
triadic
#2E2988 #882E29 #29882E
tetradic
#2E2988 #882954 #838829 #29885E
square
#2E2988 #882954 #838829 #29885E
split-complementary
#2E2988 #885E29 #548829
monochromatic
#0E0D2A #1E1B59 #2E2988 #3E37B7 #635DCE

Accessibility & contrast

On white

11.74
#2E2988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2988
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2988#FFFFFF#000000##FFFFFF
##2E29881.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003486
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2988;
/* rgb */ color: rgb(46, 41, 136);
/* oklch */ color: oklch(35.4% 0.152 277.6);
Tailwind
colors: {
  custom: {
    50: '#7363ac',
    500: '#2e2988',
    950: '#000000',
  },
}
SCSS
$custom: #2e2988;
$custom-light: #7363ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2988",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 243.158,
    "s": 53.672,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35421,
    "c": 0.15209,
    "h": 277.6
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#2E2988
secondary
#AFB459
accent
#DD4BD5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2E2988

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

Preview Lab → · Contrast checker → · Palette generator →

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