#2E2B87#2E2B87

#2E2B87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.148 H 277.2°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2E2B87
RGBrgb(46, 43, 135)
HSLhsl(242, 52%, 35%)
HSVhsv(242, 68%, 53%)
CMYKcmyk(65.9%, 68.1%, 0%, 47.1%)
CIE-LABlab(23.86, 31.20, -51.01)
CIE-LCHlch(23.86, 59.80, 301.45°)
OKLaboklab(35.66% 0.0186 -0.1471)
OKLCHoklch(35.66% 0.148 277.2)
XYZxyz(6.3623, 4.0573, 23.3648)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2B87 #84872B
analogous
#2B5687 #2E2B87 #5C2B87
triadic
#2E2B87 #872E2B #2B872E
tetradic
#2E2B87 #872B56 #84872B #2B875C
square
#2E2B87 #872B56 #84872B #2B875C
split-complementary
#2E2B87 #875C2B #56872B
monochromatic
#0E0D2A #1E1C59 #2E2B87 #3E3AB5 #6460CC

Accessibility & contrast

On white

11.59
#2E2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2E2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2B87
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2B87#FFFFFF#000000##FFFFFF
##2E2B871.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2b87;
/* rgb */ color: rgb(46, 43, 135);
/* oklch */ color: oklch(35.7% 0.148 277.2);
Tailwind
colors: {
  custom: {
    50: '#7265ab',
    500: '#2e2b87',
    950: '#000000',
  },
}
SCSS
$custom: #2e2b87;
$custom-light: #7265ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2b87",
  "rgb": {
    "r": 46,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 241.957,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35664,
    "c": 0.14829,
    "h": 277.2
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#2E2B87
secondary
#B0B25B
accent
#DB4DD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2E2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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