#2E2174#2E2174

#2E2174 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.135 H 282.9°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2E2174
RGBrgb(46, 33, 116)
HSLhsl(249, 56%, 29%)
HSVhsv(249, 72%, 45%)
CMYKcmyk(60.3%, 71.6%, 0%, 54.5%)
CIE-LABlab(19.76, 30.97, -45.68)
CIE-LCHlch(19.76, 55.19, 304.13°)
OKLaboklab(32.16% 0.0301 -0.1315)
OKLCHoklch(32.16% 0.135 282.9)
XYZxyz(4.8220, 2.9292, 16.8309)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2174 #677421
analogous
#213E74 #2E2174 #582174
triadic
#2E2174 #742E21 #21742E
tetradic
#2E2174 #74213E #677421 #217458
square
#2E2174 #74213E #677421 #217458
split-complementary
#2E2174 #745821 #3E7421
monochromatic
#090718 #1B1344 #2E2174 #412FA4 #5A45CA

Accessibility & contrast

On white

13.24
#2E2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2174
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2174#FFFFFF#000000##FFFFFF
##2E21741.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#063747
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e2174;
/* rgb */ color: rgb(46, 33, 116);
/* oklch */ color: oklch(32.2% 0.135 282.9);
Tailwind
colors: {
  custom: {
    50: '#6f5d9d',
    500: '#2e2174',
    950: '#000000',
  },
}
SCSS
$custom: #2e2174;
$custom-light: #6f5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2174",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 249.398,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32157,
    "c": 0.1349,
    "h": 282.9
  },
  "luminance": 0.0293
}

Semantic roles & 50–950 ramp

primary
#2E2174
secondary
#99A749
accent
#DF49C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E2174

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

Preview Lab → · Contrast checker → · Palette generator →

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