#2E2A57#2E2A57

#2E2A57 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.4% C 0.078 H 285.0°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#2E2A57
RGBrgb(46, 42, 87)
HSLhsl(245, 35%, 25%)
HSVhsv(245, 52%, 34%)
CMYKcmyk(47.1%, 51.7%, 0%, 65.9%)
CIE-LABlab(19.74, 15.02, -26.73)
CIE-LCHlch(19.74, 30.66, 299.33°)
OKLaboklab(31.41% 0.0203 -0.0758)
OKLCHoklch(31.41% 0.078 285)
XYZxyz(3.6745, 2.9247, 9.3859)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A57 #53572A
analogous
#2A3C57 #2E2A57 #442A57
triadic
#2E2A57 #572E2A #2A572E
tetradic
#2E2A57 #572A3C #53572A #2A5744
square
#2E2A57 #572A3C #53572A #2A5744
split-complementary
#2E2A57 #57442A #3C572A
monochromatic
#0B0A15 #18162E #2E2A57 #443E80 #5A52AA

Accessibility & contrast

On white

13.25
#2E2A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E2A57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A57
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A57#FFFFFF#000000##FFFFFF
##2E2A571.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183159
Deuteranopia (green-blind)
#162E56
Tritanopia (blue-blind)
#21333C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e2a57;
/* rgb */ color: rgb(46, 42, 87);
/* oklch */ color: oklch(31.4% 0.078 285.0);
Tailwind
colors: {
  custom: {
    50: '#696387',
    500: '#2e2a57',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a57;
$custom-light: #696387;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a57",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 87
  },
  "hsl": {
    "h": 245.333,
    "s": 34.884,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31407,
    "c": 0.07843,
    "h": 285
  },
  "luminance": 0.02925
}

Semantic roles & 50–950 ramp

primary
#2E2A57
secondary
#858953
accent
#CB5DC1
background
#F6F5F8
surface
#EBEAEF
border
#C6C6CA
text
#06050B
muted
#7A797C

Preview Lab

Preview with #2E2A57

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

Preview Lab → · Contrast checker → · Palette generator →

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