#2E2879#2E2879

#2E2879 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.133 H 279.9°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2E2879
RGBrgb(46, 40, 121)
HSLhsl(244, 50%, 32%)
HSVhsv(244, 67%, 47%)
CMYKcmyk(62%, 66.9%, 0%, 52.5%)
CIE-LABlab(21.87, 28.23, -45.44)
CIE-LCHlch(21.87, 53.49, 301.85°)
OKLaboklab(33.82% 0.0228 -0.1308)
OKLCHoklch(33.82% 0.133 279.9)
XYZxyz(5.3356, 3.4785, 18.4757)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2879 #737928
analogous
#284B79 #2E2879 #572879
triadic
#2E2879 #792E28 #28792E
tetradic
#2E2879 #79284B #737928 #287957
square
#2E2879 #79284B #737928 #287957
split-complementary
#2E2879 #795728 #4B7928
monochromatic
#0B0A1D #1D194B #2E2879 #3F37A7 #5D55C7

Accessibility & contrast

On white

12.38
#2E2879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2879
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2879#FFFFFF#000000##FFFFFF
##2E28791.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2879;
/* rgb */ color: rgb(46, 40, 121);
/* oklch */ color: oklch(33.8% 0.133 279.9);
Tailwind
colors: {
  custom: {
    50: '#7062a0',
    500: '#2e2879',
    950: '#000000',
  },
}
SCSS
$custom: #2e2879;
$custom-light: #7062a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2879",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 244.444,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33823,
    "c": 0.13275,
    "h": 279.9
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#2E2879
secondary
#A4AB52
accent
#DA4ECF
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E2879

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

Preview Lab → · Contrast checker → · Palette generator →

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