#2E2978#2E2978

#2E2978 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.130 H 279.7°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2E2978
RGBrgb(46, 41, 120)
HSLhsl(244, 49%, 32%)
HSVhsv(244, 66%, 47%)
CMYKcmyk(61.7%, 65.8%, 0%, 52.9%)
CIE-LABlab(22.03, 27.22, -44.54)
CIE-LCHlch(22.03, 52.20, 301.43°)
OKLaboklab(33.91% 0.022 -0.1281)
OKLCHoklch(33.91% 0.13 279.7)
XYZxyz(5.3087, 3.5224, 18.1658)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2978 #737829
analogous
#294C78 #2E2978 #562978
triadic
#2E2978 #782E29 #29782E
tetradic
#2E2978 #78294C #737829 #297856
square
#2E2978 #78294C #737829 #297856
split-complementary
#2E2978 #785629 #4C7829
monochromatic
#0B0A1D #1D194A #2E2978 #3F39A6 #5D56C5

Accessibility & contrast

On white

12.32
#2E2978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2E2978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2978
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2978#FFFFFF#000000##FFFFFF
##2E29781.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e2978;
/* rgb */ color: rgb(46, 41, 120);
/* oklch */ color: oklch(33.9% 0.130 279.7);
Tailwind
colors: {
  custom: {
    50: '#6f63a0',
    500: '#2e2978',
    950: '#000000',
  },
}
SCSS
$custom: #2e2978;
$custom-light: #6f63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2978",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 243.797,
    "s": 49.068,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33911,
    "c": 0.13,
    "h": 279.7
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#2E2978
secondary
#A4AA53
accent
#D94FD0
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2E2978

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

Preview Lab → · Contrast checker → · Palette generator →

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