#2E2173#2E2173

#2E2173 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.134 H 283.1°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2E2173
RGBrgb(46, 33, 115)
HSLhsl(250, 55%, 29%)
HSVhsv(250, 71%, 45%)
CMYKcmyk(60%, 71.3%, 0%, 54.9%)
CIE-LABlab(19.66, 30.63, -45.20)
CIE-LCHlch(19.66, 54.60, 304.13°)
OKLaboklab(32.06% 0.0303 -0.1301)
OKLCHoklch(32.06% 0.134 283.1)
XYZxyz(4.7641, 2.9061, 16.5262)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2173 #667321
analogous
#213D73 #2E2173 #572173
triadic
#2E2173 #732E21 #21732E
tetradic
#2E2173 #73213D #667321 #217357
square
#2E2173 #73213D #667321 #217357
split-complementary
#2E2173 #735721 #3D7321
monochromatic
#0A0718 #1B1343 #2E2173 #412FA3 #5A45CA

Accessibility & contrast

On white

13.28
#2E2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2173
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2173#FFFFFF#000000##FFFFFF
##2E21731.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#083647
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e2173;
/* rgb */ color: rgb(46, 33, 115);
/* oklch */ color: oklch(32.1% 0.134 283.1);
Tailwind
colors: {
  custom: {
    50: '#6f5d9c',
    500: '#2e2173',
    950: '#000000',
  },
}
SCSS
$custom: #2e2173;
$custom-light: #6f5d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2173",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 249.512,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3206,
    "c": 0.13354,
    "h": 283.1
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#2E2173
secondary
#98A649
accent
#DF49C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E2173

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

Preview Lab → · Contrast checker → · Palette generator →

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