#2E2481#2E2481

#2E2481 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.149 H 279.8°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2E2481
RGBrgb(46, 36, 129)
HSLhsl(246, 56%, 32%)
HSVhsv(246, 72%, 51%)
CMYKcmyk(64.3%, 72.1%, 0%, 49.4%)
CIE-LABlab(21.68, 33.52, -50.82)
CIE-LCHlch(21.68, 60.88, 303.41°)
OKLaboklab(33.92% 0.0252 -0.1466)
OKLCHoklch(33.92% 0.149 279.8)
XYZxyz(5.7188, 3.4271, 21.1248)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2481 #778124
analogous
#244881 #2E2481 #5D2481
triadic
#2E2481 #812E24 #24812E
tetradic
#2E2481 #812448 #778124 #24815D
square
#2E2481 #812448 #778124 #24815D
split-complementary
#2E2481 #815D24 #488124
monochromatic
#0C0921 #1D1751 #2E2481 #3F31B1 #5E51CE

Accessibility & contrast

On white

12.46
#2E2481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E2481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2481
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2481#FFFFFF#000000##FFFFFF
##2E24811.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2481;
/* rgb */ color: rgb(46, 36, 129);
/* oklch */ color: oklch(33.9% 0.149 279.8);
Tailwind
colors: {
  custom: {
    50: '#7260a6',
    500: '#2e2481',
    950: '#000000',
  },
}
SCSS
$custom: #2e2481;
$custom-light: #7260a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2481",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 129
  },
  "hsl": {
    "h": 246.452,
    "s": 56.364,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33917,
    "c": 0.1487,
    "h": 279.8
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#2E2481
secondary
#A8B24E
accent
#E048CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2E2481

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

Preview Lab → · Contrast checker → · Palette generator →

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