#2E2877#2E2877

#2E2877 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.130 H 280.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2E2877
RGBrgb(46, 40, 119)
HSLhsl(245, 50%, 31%)
HSVhsv(245, 66%, 47%)
CMYKcmyk(61.3%, 66.4%, 0%, 53.3%)
CIE-LABlab(21.69, 27.53, -44.45)
CIE-LCHlch(21.69, 52.28, 301.77°)
OKLaboklab(33.64% 0.023 -0.1279)
OKLCHoklch(33.64% 0.13 280.2)
XYZxyz(5.2142, 3.4300, 17.8365)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2877 #717728
analogous
#284977 #2E2877 #552877
triadic
#2E2877 #772E28 #28772E
tetradic
#2E2877 #772849 #717728 #287755
square
#2E2877 #772849 #717728 #287755
split-complementary
#2E2877 #775528 #497728
monochromatic
#0B091B #1C1949 #2E2877 #4037A5 #5D54C5

Accessibility & contrast

On white

12.46
#2E2877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2877
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2877#FFFFFF#000000##FFFFFF
##2E28771.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#003175
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2877;
/* rgb */ color: rgb(46, 40, 119);
/* oklch */ color: oklch(33.6% 0.130 280.2);
Tailwind
colors: {
  custom: {
    50: '#6f629f',
    500: '#2e2877',
    950: '#000000',
  },
}
SCSS
$custom: #2e2877;
$custom-light: #6f629f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2877",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 244.557,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33639,
    "c": 0.12993,
    "h": 280.2
  },
  "luminance": 0.0343
}

Semantic roles & 50–950 ramp

primary
#2E2877
secondary
#A2A952
accent
#D94FCF
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2877

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

Preview Lab → · Contrast checker → · Palette generator →

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