#2E2579#2E2579

#2E2579 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.137 H 280.8°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2E2579
RGBrgb(46, 37, 121)
HSLhsl(246, 53%, 31%)
HSVhsv(246, 69%, 47%)
CMYKcmyk(62%, 69.4%, 0%, 52.5%)
CIE-LABlab(21.15, 30.16, -46.61)
CIE-LCHlch(21.15, 55.52, 302.90°)
OKLaboklab(33.3% 0.0256 -0.1342)
OKLCHoklch(33.3% 0.137 280.8)
XYZxyz(5.2384, 3.2841, 18.4433)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2579 #707925
analogous
#254679 #2E2579 #582579
triadic
#2E2579 #792E25 #25792E
tetradic
#2E2579 #792546 #707925 #257958
square
#2E2579 #792546 #707925 #257958
split-complementary
#2E2579 #795825 #467925
monochromatic
#0A081B #1C174A #2E2579 #4033A8 #5C4FC9

Accessibility & contrast

On white

12.68
#2E2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2579
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2579#FFFFFF#000000##FFFFFF
##2E25791.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e2579;
/* rgb */ color: rgb(46, 37, 121);
/* oklch */ color: oklch(33.3% 0.137 280.8);
Tailwind
colors: {
  custom: {
    50: '#7060a1',
    500: '#2e2579',
    950: '#000000',
  },
}
SCSS
$custom: #2e2579;
$custom-light: #7060a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2579",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 246.429,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33302,
    "c": 0.13665,
    "h": 280.8
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#2E2579
secondary
#A1AB4E
accent
#DD4BCD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E2579

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

Preview Lab → · Contrast checker → · Palette generator →

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