#2E32AB#2E32AB

#2E32AB is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.188 H 272.8°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2E32AB
RGBrgb(46, 50, 171)
HSLhsl(238, 58%, 43%)
HSVhsv(238, 73%, 67%)
CMYKcmyk(73.1%, 70.8%, 0%, 32.9%)
CIE-LABlab(28.91, 39.42, -64.77)
CIE-LCHlch(28.91, 75.83, 301.32°)
OKLaboklab(40.35% 0.0091 -0.1873)
OKLCHoklch(40.35% 0.188 272.8)
XYZxyz(9.6155, 5.8013, 39.1332)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E32AB #ABA72E
analogous
#2E70AB #2E32AB #682EAB
triadic
#2E32AB #AB2E32 #32AB2E
tetradic
#2E32AB #AB2E70 #ABA72E #2EAB68
square
#2E32AB #AB2E70 #ABA72E #2EAB68
split-complementary
#2E32AB #AB682E #70AB2E
monochromatic
#14164B #21247B #2E32AB #484DCE #797CDB

Accessibility & contrast

On white

9.72
#2E32AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2E32AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E32AB
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E32AB#FFFFFF#000000##FFFFFF
##2E32AB1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e32ab;
/* rgb */ color: rgb(46, 50, 171);
/* oklch */ color: oklch(40.4% 0.188 272.8);
Tailwind
colors: {
  custom: {
    50: '#7a6bc5',
    500: '#2e32ab',
    950: '#000000',
  },
}
SCSS
$custom: #2e32ab;
$custom-light: #7a6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e32ab",
  "rgb": {
    "r": 46,
    "g": 50,
    "b": 171
  },
  "hsl": {
    "h": 238.08,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40354,
    "c": 0.18757,
    "h": 272.8
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#2E32AB
secondary
#C3C072
accent
#DC47E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2E32AB

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

Preview Lab → · Contrast checker → · Palette generator →

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