#2E32A6#2E32A6

#2E32A6 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.181 H 273.1°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2E32A6
RGBrgb(46, 50, 166)
HSLhsl(238, 57%, 42%)
HSVhsv(238, 72%, 65%)
CMYKcmyk(72.3%, 69.9%, 0%, 34.9%)
CIE-LABlab(28.42, 37.68, -62.57)
CIE-LCHlch(28.42, 73.04, 301.06°)
OKLaboklab(39.86% 0.0098 -0.1809)
OKLCHoklch(39.86% 0.181 273.1)
XYZxyz(9.1479, 5.6143, 36.6706)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E32A6 #A6A22E
analogous
#2E6EA6 #2E32A6 #662EA6
triadic
#2E32A6 #A62E32 #32A62E
tetradic
#2E32A6 #A62E6E #A6A22E #2EA666
square
#2E32A6 #A62E6E #A6A22E #2EA666
split-complementary
#2E32A6 #A6662E #6EA62E
monochromatic
#131546 #212476 #2E32A6 #464ACC #7679D9

Accessibility & contrast

On white

9.89
#2E32A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2E32A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E32A6
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E32A6#FFFFFF#000000##FFFFFF
##2E32A61.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e32a6;
/* rgb */ color: rgb(46, 50, 166);
/* oklch */ color: oklch(39.9% 0.181 273.1);
Tailwind
colors: {
  custom: {
    50: '#796ac2',
    500: '#2e32a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e32a6;
$custom-light: #796ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e32a6",
  "rgb": {
    "r": 46,
    "g": 50,
    "b": 166
  },
  "hsl": {
    "h": 238,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39855,
    "c": 0.18117,
    "h": 273.1
  },
  "luminance": 0.05615
}

Semantic roles & 50–950 ramp

primary
#2E32A6
secondary
#C1BE6F
accent
#DB48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E32A6

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

Preview Lab → · Contrast checker → · Palette generator →

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