#2E2873#2E2873

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

Color values

HEX#2E2873
RGBrgb(46, 40, 115)
HSLhsl(245, 48%, 30%)
HSVhsv(245, 65%, 45%)
CMYKcmyk(60%, 65.2%, 0%, 54.9%)
CIE-LABlab(21.34, 26.13, -42.46)
CIE-LCHlch(21.34, 49.85, 301.61°)
OKLaboklab(33.28% 0.0234 -0.122)
OKLCHoklch(33.28% 0.124 280.8)
XYZxyz(4.9790, 3.3359, 16.5979)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2873 #6D7328
analogous
#284773 #2E2873 #532873
triadic
#2E2873 #732E28 #28732E
tetradic
#2E2873 #732847 #6D7328 #287353
square
#2E2873 #732847 #6D7328 #287353
split-complementary
#2E2873 #735328 #477328
monochromatic
#0A0818 #1C1846 #2E2873 #4038A0 #5B52C3

Accessibility & contrast

On white

12.60
#2E2873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E2873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2873
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2873#FFFFFF#000000##FFFFFF
##2E28731.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#073A49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e2873;
/* rgb */ color: rgb(46, 40, 115);
/* oklch */ color: oklch(33.3% 0.124 280.8);
Tailwind
colors: {
  custom: {
    50: '#6f629c',
    500: '#2e2873',
    950: '#000000',
  },
}
SCSS
$custom: #2e2873;
$custom-light: #6f629c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2873",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 244.8,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33277,
    "c": 0.12423,
    "h": 280.8
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#2E2873
secondary
#9FA552
accent
#D850CD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2873

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

Preview Lab → · Contrast checker → · Palette generator →

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