#2E2183#2E2183

#2E2183 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.155 H 280.1°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2E2183
RGBrgb(46, 33, 131)
HSLhsl(248, 60%, 32%)
HSVhsv(248, 75%, 51%)
CMYKcmyk(64.9%, 74.8%, 0%, 48.6%)
CIE-LABlab(21.23, 35.98, -52.81)
CIE-LCHlch(21.23, 63.90, 304.26°)
OKLaboklab(33.66% 0.0271 -0.1524)
OKLCHoklch(33.66% 0.155 280.1)
XYZxyz(5.7660, 3.3068, 21.8028)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2183 #768321
analogous
#214583 #2E2183 #5F2183
triadic
#2E2183 #832E21 #21832E
tetradic
#2E2183 #832145 #768321 #21835F
square
#2E2183 #832145 #768321 #21835F
split-complementary
#2E2183 #835F21 #458321
monochromatic
#0C0821 #1D1552 #2E2183 #3F2DB4 #5E4CD2

Accessibility & contrast

On white

12.64
#2E2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2E2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2183
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2183#FFFFFF#000000##FFFFFF
##2E21831.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e2183;
/* rgb */ color: rgb(46, 33, 131);
/* oklch */ color: oklch(33.7% 0.155 280.1);
Tailwind
colors: {
  custom: {
    50: '#725ea8',
    500: '#2e2183',
    950: '#000000',
  },
}
SCSS
$custom: #2e2183;
$custom-light: #725ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2183",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 247.959,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3366,
    "c": 0.15476,
    "h": 280.1
  },
  "luminance": 0.03307
}

Semantic roles & 50–950 ramp

primary
#2E2183
secondary
#A7B54B
accent
#E345CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E2183

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

Preview Lab → · Contrast checker → · Palette generator →

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