#2E2782#2E2782

#2E2782 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.146 H 278.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2E2782
RGBrgb(46, 39, 130)
HSLhsl(245, 54%, 33%)
HSVhsv(245, 70%, 51%)
CMYKcmyk(64.6%, 70%, 0%, 49%)
CIE-LABlab(22.45, 32.00, -50.18)
CIE-LCHlch(22.45, 59.51, 302.53°)
OKLaboklab(34.5% 0.0226 -0.1447)
OKLCHoklch(34.5% 0.146 278.9)
XYZxyz(5.8802, 3.6431, 21.5081)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2782 #7B8227
analogous
#274E82 #2E2782 #5B2782
triadic
#2E2782 #822E27 #27822E
tetradic
#2E2782 #82274E #7B8227 #27825B
square
#2E2782 #82274E #7B8227 #27825B
split-complementary
#2E2782 #825B27 #4E8227
monochromatic
#0D0B24 #1D1953 #2E2782 #3F35B1 #6057CD

Accessibility & contrast

On white

12.15
#2E2782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E2782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2782
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2782#FFFFFF#000000##FFFFFF
##2E27821.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e2782;
/* rgb */ color: rgb(46, 39, 130);
/* oklch */ color: oklch(34.5% 0.146 278.9);
Tailwind
colors: {
  custom: {
    50: '#7262a7',
    500: '#2e2782',
    950: '#000000',
  },
}
SCSS
$custom: #2e2782;
$custom-light: #7262a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2782",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 244.615,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34504,
    "c": 0.14642,
    "h": 278.9
  },
  "luminance": 0.03644
}

Semantic roles & 50–950 ramp

primary
#2E2782
secondary
#AAB153
accent
#DD4BD2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E2782

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

Preview Lab → · Contrast checker → · Palette generator →

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