#2E2AAA#2E2AAA

#2E2AAA is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.1% C 0.195 H 274.0°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#2E2AAA
RGBrgb(46, 42, 170)
HSLhsl(242, 60%, 42%)
HSVhsv(242, 75%, 67%)
CMYKcmyk(72.9%, 75.3%, 0%, 33.3%)
CIE-LABlab(27.12, 43.76, -67.11)
CIE-LCHlch(27.12, 80.11, 303.11°)
OKLaboklab(39.05% 0.0135 -0.1941)
OKLCHoklch(39.05% 0.195 274)
XYZxyz(9.2080, 5.1381, 38.5289)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2AAA #A6AA2A
analogous
#2A66AA #2E2AAA #6E2AAA
triadic
#2E2AAA #AA2E2A #2AAA2E
tetradic
#2E2AAA #AA2A66 #A6AA2A #2AAA6E
square
#2E2AAA #AA2A66 #A6AA2A #2AAA6E
split-complementary
#2E2AAA #AA6E2A #66AA2A
monochromatic
#131248 #211E79 #2E2AAA #4641D0 #7672DC

Accessibility & contrast

On white

10.36
#2E2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2E2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2AAA
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2AAA#FFFFFF#000000##FFFFFF
##2E2AAA1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#003AA8
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e2aaa;
/* rgb */ color: rgb(46, 42, 170);
/* oklch */ color: oklch(39.1% 0.195 274.0);
Tailwind
colors: {
  custom: {
    50: '#7a65c5',
    500: '#2e2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #2e2aaa;
$custom-light: #7a65c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2aaa",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 241.875,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39053,
    "c": 0.19459,
    "h": 274
  },
  "luminance": 0.05139
}

Semantic roles & 50–950 ramp

primary
#2E2AAA
secondary
#C1C36C
accent
#E444DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2E2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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