#2E2AA2#2E2AA2

#2E2AA2 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.185 H 274.7°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2E2AA2
RGBrgb(46, 42, 162)
HSLhsl(242, 59%, 40%)
HSVhsv(242, 74%, 64%)
CMYKcmyk(71.6%, 74.1%, 0%, 36.5%)
CIE-LABlab(26.29, 41.10, -63.65)
CIE-LCHlch(26.29, 75.77, 302.85°)
OKLaboklab(38.21% 0.0151 -0.1841)
OKLCHoklch(38.21% 0.185 274.7)
XYZxyz(8.4741, 4.8446, 34.6639)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2AA2 #9EA22A
analogous
#2A62A2 #2E2AA2 #6A2AA2
triadic
#2E2AA2 #A22E2A #2AA22E
tetradic
#2E2AA2 #A22A62 #9EA22A #2AA26A
square
#2E2AA2 #A22A62 #9EA22A #2AA26A
split-complementary
#2E2AA2 #A26A2A #62A22A
monochromatic
#121141 #201D71 #2E2AA2 #413DCD #716DD9

Accessibility & contrast

On white

10.67
#2E2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2E2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2AA2
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2AA2#FFFFFF#000000##FFFFFF
##2E2AA21.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e2aa2;
/* rgb */ color: rgb(46, 42, 162);
/* oklch */ color: oklch(38.2% 0.185 274.7);
Tailwind
colors: {
  custom: {
    50: '#7965bf',
    500: '#2e2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #2e2aa2;
$custom-light: #7965bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2aa2",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 242,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38209,
    "c": 0.18468,
    "h": 274.7
  },
  "luminance": 0.04845
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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