#2E2A87#2E2A87

#2E2A87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.150 H 277.5°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2E2A87
RGBrgb(46, 42, 135)
HSLhsl(243, 53%, 35%)
HSVhsv(243, 69%, 53%)
CMYKcmyk(65.9%, 68.9%, 0%, 47.1%)
CIE-LABlab(23.62, 31.84, -51.40)
CIE-LCHlch(23.62, 60.46, 301.78°)
OKLaboklab(35.49% 0.0194 -0.1482)
OKLCHoklch(35.49% 0.15 277.5)
XYZxyz(6.3264, 3.9855, 23.3529)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A87 #83872A
analogous
#2A5487 #2E2A87 #5D2A87
triadic
#2E2A87 #872E2A #2A872E
tetradic
#2E2A87 #872A54 #83872A #2A875D
square
#2E2A87 #872A54 #83872A #2A875D
split-complementary
#2E2A87 #875D2A #54872A
monochromatic
#0E0D2A #1E1B58 #2E2A87 #3E39B6 #635ECD

Accessibility & contrast

On white

11.68
#2E2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2E2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A87
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A87#FFFFFF#000000##FFFFFF
##2E2A871.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2a87;
/* rgb */ color: rgb(46, 42, 135);
/* oklch */ color: oklch(35.5% 0.150 277.5);
Tailwind
colors: {
  custom: {
    50: '#7264ab',
    500: '#2e2a87',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a87;
$custom-light: #7264ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a87",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 242.581,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35492,
    "c": 0.14952,
    "h": 277.5
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#2E2A87
secondary
#AFB35A
accent
#DC4CD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2E2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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