#2E2AA0#2E2AA0

#2E2AA0 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.182 H 274.9°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#2E2AA0
RGBrgb(46, 42, 160)
HSLhsl(242, 58%, 40%)
HSVhsv(242, 74%, 63%)
CMYKcmyk(71.2%, 73.8%, 0%, 37.3%)
CIE-LABlab(26.08, 40.42, -62.78)
CIE-LCHlch(26.08, 74.67, 302.78°)
OKLaboklab(38% 0.0154 -0.1815)
OKLCHoklch(38% 0.182 274.9)
XYZxyz(8.2977, 4.7740, 33.7351)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2AA0 #9CA02A
analogous
#2A61A0 #2E2AA0 #692AA0
triadic
#2E2AA0 #A02E2A #2AA02E
tetradic
#2E2AA0 #A02A61 #9CA02A #2AA069
square
#2E2AA0 #A02A61 #9CA02A #2AA069
split-complementary
#2E2AA0 #A0692A #61A02A
monochromatic
#12113F #201D70 #2E2AA0 #403CCC #706CD8

Accessibility & contrast

On white

10.74
#2E2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2E2AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2AA0
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2AA0#FFFFFF#000000##FFFFFF
##2E2AA01.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A3
Deuteranopia (green-blind)
#00389E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e2aa0;
/* rgb */ color: rgb(46, 42, 160);
/* oklch */ color: oklch(38.0% 0.182 274.9);
Tailwind
colors: {
  custom: {
    50: '#7865bd',
    500: '#2e2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #2e2aa0;
$custom-light: #7865bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2aa0",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 242.034,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38001,
    "c": 0.18217,
    "h": 274.9
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#2E2AA0
secondary
#BCBF67
accent
#E246DC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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