#2E2172#2E2172

#2E2172 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.132 H 283.3°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#2E2172
RGBrgb(46, 33, 114)
HSLhsl(250, 55%, 29%)
HSVhsv(250, 71%, 45%)
CMYKcmyk(59.6%, 71.1%, 0%, 55.3%)
CIE-LABlab(19.57, 30.29, -44.70)
CIE-LCHlch(19.57, 54.00, 304.12°)
OKLaboklab(31.96% 0.0304 -0.1286)
OKLCHoklch(31.96% 0.132 283.3)
XYZxyz(4.7069, 2.8832, 16.2248)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2172 #657221
analogous
#213D72 #2E2172 #572172
triadic
#2E2172 #722E21 #21722E
tetradic
#2E2172 #72213D #657221 #217257
square
#2E2172 #72213D #657221 #217257
split-complementary
#2E2172 #725721 #3D7221
monochromatic
#0A0718 #1B1343 #2E2172 #412FA1 #5A44C9

Accessibility & contrast

On white

13.32
#2E2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2172
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2172#FFFFFF#000000##FFFFFF
##2E21721.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#0A3646
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e2172;
/* rgb */ color: rgb(46, 33, 114);
/* oklch */ color: oklch(32.0% 0.132 283.3);
Tailwind
colors: {
  custom: {
    50: '#6f5d9b',
    500: '#2e2172',
    950: '#000000',
  },
}
SCSS
$custom: #2e2172;
$custom-light: #6f5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2172",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 249.63,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31964,
    "c": 0.13218,
    "h": 283.3
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#2E2172
secondary
#97A549
accent
#DE49C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E2172

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

Preview Lab → · Contrast checker → · Palette generator →

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