#2E2876#2E2876

#2E2876 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.129 H 280.4°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2E2876
RGBrgb(46, 40, 118)
HSLhsl(245, 49%, 31%)
HSVhsv(245, 66%, 46%)
CMYKcmyk(61%, 66.1%, 0%, 53.7%)
CIE-LABlab(21.60, 27.18, -43.95)
CIE-LCHlch(21.60, 51.68, 301.73°)
OKLaboklab(33.55% 0.0231 -0.1264)
OKLCHoklch(33.55% 0.129 280.4)
XYZxyz(5.1545, 3.4061, 17.5218)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2876 #707628
analogous
#284976 #2E2876 #552876
triadic
#2E2876 #762E28 #28762E
tetradic
#2E2876 #762849 #707628 #287655
square
#2E2876 #762849 #707628 #287655
split-complementary
#2E2876 #765528 #497628
monochromatic
#0A091B #1C1948 #2E2876 #4037A4 #5C54C5

Accessibility & contrast

On white

12.49
#2E2876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E2876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2876
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2876#FFFFFF#000000##FFFFFF
##2E28761.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#013B4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2876;
/* rgb */ color: rgb(46, 40, 118);
/* oklch */ color: oklch(33.5% 0.129 280.4);
Tailwind
colors: {
  custom: {
    50: '#6f629e',
    500: '#2e2876',
    950: '#000000',
  },
}
SCSS
$custom: #2e2876;
$custom-light: #6f629e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2876",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 244.615,
    "s": 49.367,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33548,
    "c": 0.12852,
    "h": 280.4
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#2E2876
secondary
#A1A852
accent
#D94FCE
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2876

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

Preview Lab → · Contrast checker → · Palette generator →

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