#2E2687#2E2687

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

Color values

HEX#2E2687
RGBrgb(46, 38, 135)
HSLhsl(245, 56%, 34%)
HSVhsv(245, 72%, 53%)
CMYKcmyk(65.9%, 71.9%, 0%, 47.1%)
CIE-LABlab(22.71, 34.34, -52.90)
CIE-LCHlch(22.71, 63.07, 302.99°)
OKLaboklab(34.83% 0.0226 -0.1526)
OKLCHoklch(34.83% 0.154 278.4)
XYZxyz(6.1916, 3.7158, 23.3079)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2687 #7F8726
analogous
#264F87 #2E2687 #5F2687
triadic
#2E2687 #872E26 #26872E
tetradic
#2E2687 #87264F #7F8726 #26875F
square
#2E2687 #87264F #7F8726 #26875F
split-complementary
#2E2687 #875F26 #4F8726
monochromatic
#0D0B27 #1E1957 #2E2687 #3E33B7 #6158D0

Accessibility & contrast

On white

12.05
#2E2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2687
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2687#FFFFFF#000000##FFFFFF
##2E26871.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e2687;
/* rgb */ color: rgb(46, 38, 135);
/* oklch */ color: oklch(34.8% 0.154 278.4);
Tailwind
colors: {
  custom: {
    50: '#7361ab',
    500: '#2e2687',
    950: '#000000',
  },
}
SCSS
$custom: #2e2687;
$custom-light: #7361ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2687",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 244.948,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34834,
    "c": 0.15431,
    "h": 278.4
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#2E2687
secondary
#ADB554
accent
#DF48D3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2687

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

Preview Lab → · Contrast checker → · Palette generator →

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