#2E2781#2E2781

#2E2781 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.145 H 279.0°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#2E2781
RGBrgb(46, 39, 129)
HSLhsl(245, 54%, 33%)
HSVhsv(245, 70%, 51%)
CMYKcmyk(64.3%, 69.8%, 0%, 49.4%)
CIE-LABlab(22.36, 31.65, -49.70)
CIE-LCHlch(22.36, 58.92, 302.49°)
OKLaboklab(34.41% 0.0227 -0.1433)
OKLCHoklch(34.41% 0.145 279)
XYZxyz(5.8134, 3.6164, 21.1563)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2781 #7A8127
analogous
#274D81 #2E2781 #5B2781
triadic
#2E2781 #812E27 #27812E
tetradic
#2E2781 #81274D #7A8127 #27815B
square
#2E2781 #81274D #7A8127 #27815B
split-complementary
#2E2781 #815B27 #4D8127
monochromatic
#0C0B23 #1D1952 #2E2781 #3F35B0 #6056CC

Accessibility & contrast

On white

12.19
#2E2781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2E2781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2781
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2781#FFFFFF#000000##FFFFFF
##2E27811.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e2781;
/* rgb */ color: rgb(46, 39, 129);
/* oklch */ color: oklch(34.4% 0.145 279.0);
Tailwind
colors: {
  custom: {
    50: '#7162a6',
    500: '#2e2781',
    950: '#000000',
  },
}
SCSS
$custom: #2e2781;
$custom-light: #7162a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2781",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 244.667,
    "s": 53.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34407,
    "c": 0.14507,
    "h": 279
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#2E2781
secondary
#AAB153
accent
#DD4BD2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2E2781

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

Preview Lab → · Contrast checker → · Palette generator →

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