#2E2A8E#2E2A8E

#2E2A8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.159 H 276.7°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2E2A8E
RGBrgb(46, 42, 142)
HSLhsl(242, 54%, 36%)
HSVhsv(242, 70%, 56%)
CMYKcmyk(67.6%, 70.4%, 0%, 44.3%)
CIE-LABlab(24.29, 34.28, -54.67)
CIE-LCHlch(24.29, 64.53, 302.09°)
OKLaboklab(36.17% 0.0185 -0.1578)
OKLCHoklch(36.17% 0.159 276.7)
XYZxyz(6.8356, 4.1892, 26.0343)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A8E #8A8E2A
analogous
#2A588E #2E2A8E #602A8E
triadic
#2E2A8E #8E2E2A #2A8E2E
tetradic
#2E2A8E #8E2A58 #8A8E2A #2A8E60
square
#2E2A8E #8E2A58 #8A8E2A #2A8E60
split-complementary
#2E2A8E #8E602A #588E2A
monochromatic
#0F0E30 #1F1C5F #2E2A8E #3D38BD #6662D1

Accessibility & contrast

On white

11.43
#2E2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2E2A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A8E
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A8E#FFFFFF#000000##FFFFFF
##2E2A8E1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e2a8e;
/* rgb */ color: rgb(46, 42, 142);
/* oklch */ color: oklch(36.2% 0.159 276.7);
Tailwind
colors: {
  custom: {
    50: '#7464b0',
    500: '#2e2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a8e;
$custom-light: #7464b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a8e",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 242.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36174,
    "c": 0.15892,
    "h": 276.7
  },
  "luminance": 0.0419
}

Semantic roles & 50–950 ramp

primary
#2E2A8E
secondary
#B3B65D
accent
#DE4AD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2E2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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