#2E2887#2E2887

#2E2887 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.152 H 278.0°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#2E2887
RGBrgb(46, 40, 135)
HSLhsl(244, 54%, 34%)
HSVhsv(244, 70%, 53%)
CMYKcmyk(65.9%, 70.4%, 0%, 47.1%)
CIE-LABlab(23.16, 33.10, -52.16)
CIE-LCHlch(23.16, 61.78, 302.40°)
OKLaboklab(35.16% 0.021 -0.1505)
OKLCHoklch(35.16% 0.152 278)
XYZxyz(6.2573, 3.8472, 23.3298)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2887 #818728
analogous
#285287 #2E2887 #5E2887
triadic
#2E2887 #872E28 #28872E
tetradic
#2E2887 #872852 #818728 #28875E
square
#2E2887 #872852 #818728 #28875E
split-complementary
#2E2887 #875E28 #528728
monochromatic
#0E0C29 #1E1A58 #2E2887 #3E36B6 #625BCE

Accessibility & contrast

On white

11.87
#2E2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2E2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2887
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2887#FFFFFF#000000##FFFFFF
##2E28871.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2887;
/* rgb */ color: rgb(46, 40, 135);
/* oklch */ color: oklch(35.2% 0.152 278.0);
Tailwind
colors: {
  custom: {
    50: '#7363ab',
    500: '#2e2887',
    950: '#000000',
  },
}
SCSS
$custom: #2e2887;
$custom-light: #7363ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2887",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 243.789,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35157,
    "c": 0.15194,
    "h": 278
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#2E2887
secondary
#AEB457
accent
#DE4AD4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2887

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

Preview Lab → · Contrast checker → · Palette generator →

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