#2E2378#2E2378

#2E2378 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.138 H 281.6°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2E2378
RGBrgb(46, 35, 120)
HSLhsl(248, 55%, 30%)
HSVhsv(248, 71%, 47%)
CMYKcmyk(61.7%, 70.8%, 0%, 52.9%)
CIE-LABlab(20.59, 31.08, -46.89)
CIE-LCHlch(20.59, 56.25, 303.54°)
OKLaboklab(32.87% 0.0276 -0.135)
OKLCHoklch(32.87% 0.138 281.6)
XYZxyz(5.1169, 3.1386, 18.1018)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2378 #6D7823
analogous
#234278 #2E2378 #592378
triadic
#2E2378 #782E23 #23782E
tetradic
#2E2378 #782342 #6D7823 #237859
square
#2E2378 #782342 #6D7823 #237859
split-complementary
#2E2378 #785923 #427823
monochromatic
#0A0719 #1C1549 #2E2378 #4031A7 #5B4BCA

Accessibility & contrast

On white

12.90
#2E2378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E2378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2378
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2378#FFFFFF#000000##FFFFFF
##2E23781.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e2378;
/* rgb */ color: rgb(46, 35, 120);
/* oklch */ color: oklch(32.9% 0.138 281.6);
Tailwind
colors: {
  custom: {
    50: '#705fa0',
    500: '#2e2378',
    950: '#000000',
  },
}
SCSS
$custom: #2e2378;
$custom-light: #705fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2378",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 120
  },
  "hsl": {
    "h": 247.765,
    "s": 54.839,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32871,
    "c": 0.13781,
    "h": 281.6
  },
  "luminance": 0.03139
}

Semantic roles & 50–950 ramp

primary
#2E2378
secondary
#9FAB4C
accent
#DE4ACB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2E2378

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

Preview Lab → · Contrast checker → · Palette generator →

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