#2E2E87#2E2E87

#2E2E87 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.145 H 276.4°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2E2E87
RGBrgb(46, 46, 135)
HSLhsl(240, 49%, 35%)
HSVhsv(240, 66%, 53%)
CMYKcmyk(65.9%, 65.9%, 0%, 47.1%)
CIE-LABlab(24.59, 29.27, -49.82)
CIE-LCHlch(24.59, 57.78, 300.43°)
OKLaboklab(36.19% 0.0161 -0.1436)
OKLCHoklch(36.19% 0.145 276.4)
XYZxyz(6.4755, 4.2836, 23.4025)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2E87 #87872E
analogous
#2E5A87 #2E2E87 #5A2E87
triadic
#2E2E87 #872E2E #2E872E
tetradic
#2E2E87 #872E5A #87872E #2E875A
square
#2E2E87 #872E5A #87872E #2E875A
split-complementary
#2E2E87 #875A2E #5A872E
monochromatic
#0F0F2C #1E1E59 #2E2E87 #3E3EB5 #6565CA

Accessibility & contrast

On white

11.31
#2E2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2E2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2E87
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2E87#FFFFFF#000000##FFFFFF
##2E2E871.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e2e87;
/* rgb */ color: rgb(46, 46, 135);
/* oklch */ color: oklch(36.2% 0.145 276.4);
Tailwind
colors: {
  custom: {
    50: '#7267ab',
    500: '#2e2e87',
    950: '#000000',
  },
}
SCSS
$custom: #2e2e87;
$custom-light: #7267ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2e87",
  "rgb": {
    "r": 46,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36193,
    "c": 0.14452,
    "h": 276.4
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#2E2E87
secondary
#B1B160
accent
#D94FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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