#2E2AA6#2E2AA6

#2E2AA6 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.190 H 274.3°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2E2AA6
RGBrgb(46, 42, 166)
HSLhsl(242, 60%, 41%)
HSVhsv(242, 75%, 65%)
CMYKcmyk(72.3%, 74.7%, 0%, 34.9%)
CIE-LABlab(26.70, 42.43, -65.39)
CIE-LCHlch(26.70, 77.95, 302.98°)
OKLaboklab(38.63% 0.0143 -0.1891)
OKLCHoklch(38.63% 0.19 274.3)
XYZxyz(8.8353, 4.9891, 36.5664)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2AA6 #A2A62A
analogous
#2A64A6 #2E2AA6 #6C2AA6
triadic
#2E2AA6 #A62E2A #2AA62E
tetradic
#2E2AA6 #A62A64 #A2A62A #2AA66C
square
#2E2AA6 #A62A64 #A2A62A #2AA66C
split-complementary
#2E2AA6 #A66C2A #64A62A
monochromatic
#131144 #201E75 #2E2AA6 #433FCE #7370DB

Accessibility & contrast

On white

10.51
#2E2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2E2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2AA6
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2AA6#FFFFFF#000000##FFFFFF
##2E2AA61.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e2aa6;
/* rgb */ color: rgb(46, 42, 166);
/* oklch */ color: oklch(38.6% 0.190 274.3);
Tailwind
colors: {
  custom: {
    50: '#7a65c2',
    500: '#2e2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #2e2aa6;
$custom-light: #7a65c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2aa6",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 241.935,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38629,
    "c": 0.18966,
    "h": 274.3
  },
  "luminance": 0.0499
}

Semantic roles & 50–950 ramp

primary
#2E2AA6
secondary
#BFC26A
accent
#E345DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #2E2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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