#2E2878#2E2878

#2E2878 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.131 H 280.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2E2878
RGBrgb(46, 40, 120)
HSLhsl(245, 50%, 31%)
HSVhsv(245, 67%, 47%)
CMYKcmyk(61.7%, 66.7%, 0%, 52.9%)
CIE-LABlab(21.78, 27.88, -44.94)
CIE-LCHlch(21.78, 52.89, 301.81°)
OKLaboklab(33.73% 0.0229 -0.1293)
OKLCHoklch(33.73% 0.131 280.1)
XYZxyz(5.2746, 3.4541, 18.1544)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2878 #727828
analogous
#284A78 #2E2878 #562878
triadic
#2E2878 #782E28 #28782E
tetradic
#2E2878 #78284A #727828 #287856
square
#2E2878 #78284A #727828 #287856
split-complementary
#2E2878 #785628 #4A7828
monochromatic
#0B091C #1C194A #2E2878 #4037A6 #5D54C6

Accessibility & contrast

On white

12.42
#2E2878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E2878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2878
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2878#FFFFFF#000000##FFFFFF
##2E28781.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2878;
/* rgb */ color: rgb(46, 40, 120);
/* oklch */ color: oklch(33.7% 0.131 280.1);
Tailwind
colors: {
  custom: {
    50: '#7062a0',
    500: '#2e2878',
    950: '#000000',
  },
}
SCSS
$custom: #2e2878;
$custom-light: #7062a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2878",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 244.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33731,
    "c": 0.13134,
    "h": 280.1
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#2E2878
secondary
#A3AA52
accent
#DA4ECF
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2E2878

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

Preview Lab → · Contrast checker → · Palette generator →

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