#2E2987#2E2987

#2E2987 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.151 H 277.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2E2987
RGBrgb(46, 41, 135)
HSLhsl(243, 53%, 35%)
HSVhsv(243, 70%, 53%)
CMYKcmyk(65.9%, 69.6%, 0%, 47.1%)
CIE-LABlab(23.39, 32.47, -51.78)
CIE-LCHlch(23.39, 61.12, 302.09°)
OKLaboklab(35.32% 0.0203 -0.1494)
OKLCHoklch(35.32% 0.151 277.7)
XYZxyz(6.2914, 3.9155, 23.3412)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2987 #828729
analogous
#295387 #2E2987 #5D2987
triadic
#2E2987 #872E29 #29872E
tetradic
#2E2987 #872953 #828729 #29875D
square
#2E2987 #872953 #828729 #29875D
split-complementary
#2E2987 #875D29 #538729
monochromatic
#0E0C29 #1E1B58 #2E2987 #3E37B6 #635DCE

Accessibility & contrast

On white

11.78
#2E2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2E2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2987
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2987#FFFFFF#000000##FFFFFF
##2E29871.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2987;
/* rgb */ color: rgb(46, 41, 135);
/* oklch */ color: oklch(35.3% 0.151 277.7);
Tailwind
colors: {
  custom: {
    50: '#7363ab',
    500: '#2e2987',
    950: '#000000',
  },
}
SCSS
$custom: #2e2987;
$custom-light: #7363ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2987",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 243.191,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35323,
    "c": 0.15075,
    "h": 277.7
  },
  "luminance": 0.03916
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E2987

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

Preview Lab → · Contrast checker → · Palette generator →

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