#2E2588#2E2588

#2E2588 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.157 H 278.5°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2E2588
RGBrgb(46, 37, 136)
HSLhsl(245, 57%, 34%)
HSVhsv(245, 73%, 53%)
CMYKcmyk(66.2%, 72.8%, 0%, 46.7%)
CIE-LABlab(22.59, 35.28, -53.73)
CIE-LCHlch(22.59, 64.28, 303.29°)
OKLaboklab(34.78% 0.0232 -0.1551)
OKLCHoklch(34.78% 0.157 278.5)
XYZxyz(6.2308, 3.6810, 23.6699)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2588 #7F8825
analogous
#254E88 #2E2588 #602588
triadic
#2E2588 #882E25 #25882E
tetradic
#2E2588 #88254E #7F8825 #258860
square
#2E2588 #88254E #7F8825 #258860
split-complementary
#2E2588 #886025 #4E8825
monochromatic
#0D0B28 #1E1858 #2E2588 #3E32B8 #6156D1

Accessibility & contrast

On white

12.09
#2E2588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E2588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2588
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2588#FFFFFF#000000##FFFFFF
##2E25881.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e2588;
/* rgb */ color: rgb(46, 37, 136);
/* oklch */ color: oklch(34.8% 0.157 278.5);
Tailwind
colors: {
  custom: {
    50: '#7361ac',
    500: '#2e2588',
    950: '#000000',
  },
}
SCSS
$custom: #2e2588;
$custom-light: #7361ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2588",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 245.455,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34777,
    "c": 0.15678,
    "h": 278.5
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#2E2588
secondary
#ADB653
accent
#E047D3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2588

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

Preview Lab → · Contrast checker → · Palette generator →

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