#2E2AA1#2E2AA1

#2E2AA1 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.183 H 274.8°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2E2AA1
RGBrgb(46, 42, 161)
HSLhsl(242, 59%, 40%)
HSVhsv(242, 74%, 63%)
CMYKcmyk(71.4%, 73.9%, 0%, 36.9%)
CIE-LABlab(26.18, 40.76, -63.22)
CIE-LCHlch(26.18, 75.22, 302.81°)
OKLaboklab(38.1% 0.0153 -0.1828)
OKLCHoklch(38.1% 0.183 274.8)
XYZxyz(8.3856, 4.8092, 34.1976)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2AA1 #9DA12A
analogous
#2A61A1 #2E2AA1 #6A2AA1
triadic
#2E2AA1 #A12E2A #2AA12E
tetradic
#2E2AA1 #A12A61 #9DA12A #2AA16A
square
#2E2AA1 #A12A61 #9DA12A #2AA16A
split-complementary
#2E2AA1 #A16A2A #61A12A
monochromatic
#121140 #201D70 #2E2AA1 #413CCC #706DD9

Accessibility & contrast

On white

10.70
#2E2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2AA1
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2AA1#FFFFFF#000000##FFFFFF
##2E2AA11.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e2aa1;
/* rgb */ color: rgb(46, 42, 161);
/* oklch */ color: oklch(38.1% 0.183 274.8);
Tailwind
colors: {
  custom: {
    50: '#7865be',
    500: '#2e2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2e2aa1;
$custom-light: #7865be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2aa1",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 242.017,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38105,
    "c": 0.18343,
    "h": 274.8
  },
  "luminance": 0.0481
}

Semantic roles & 50–950 ramp

primary
#2E2AA1
secondary
#BDC067
accent
#E246DD
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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