#2E2181#2E2181

#2E2181 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.152 H 280.4°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#2E2181
RGBrgb(46, 33, 129)
HSLhsl(248, 59%, 32%)
HSVhsv(248, 74%, 51%)
CMYKcmyk(64.3%, 74.4%, 0%, 49.4%)
CIE-LABlab(21.03, 35.31, -51.88)
CIE-LCHlch(21.03, 62.76, 304.24°)
OKLaboklab(33.45% 0.0276 -0.1496)
OKLCHoklch(33.45% 0.152 280.4)
XYZxyz(5.6318, 3.2531, 21.0958)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2181 #748121
analogous
#214481 #2E2181 #5E2181
triadic
#2E2181 #812E21 #21812E
tetradic
#2E2181 #812144 #748121 #21815E
square
#2E2181 #812144 #748121 #21815E
split-complementary
#2E2181 #815E21 #448121
monochromatic
#0B0820 #1D1550 #2E2181 #3F2DB2 #5D4BD1

Accessibility & contrast

On white

12.72
#2E2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2181
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2181#FFFFFF#000000##FFFFFF
##2E21811.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e2181;
/* rgb */ color: rgb(46, 33, 129);
/* oklch */ color: oklch(33.5% 0.152 280.4);
Tailwind
colors: {
  custom: {
    50: '#725ea7',
    500: '#2e2181',
    950: '#000000',
  },
}
SCSS
$custom: #2e2181;
$custom-light: #725ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2181",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 248.125,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33454,
    "c": 0.15216,
    "h": 280.4
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#2E2181
secondary
#A5B44A
accent
#E245CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E2181

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

Preview Lab → · Contrast checker → · Palette generator →

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