#2E278D#2E278D

#2E278D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.161 H 277.4°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#2E278D
RGBrgb(46, 39, 141)
HSLhsl(244, 57%, 35%)
HSVhsv(244, 72%, 55%)
CMYKcmyk(67.4%, 72.3%, 0%, 44.7%)
CIE-LABlab(23.52, 35.77, -55.31)
CIE-LCHlch(23.52, 65.87, 302.89°)
OKLaboklab(35.59% 0.0208 -0.1597)
OKLCHoklch(35.59% 0.161 277.4)
XYZxyz(6.6584, 3.9544, 25.6065)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E278D #868D27
analogous
#27538D #2E278D #61278D
triadic
#2E278D #8D2E27 #278D2E
tetradic
#2E278D #8D2753 #868D27 #278D61
square
#2E278D #8D2753 #868D27 #278D61
split-complementary
#2E278D #8D6127 #538D27
monochromatic
#0F0C2D #1E1A5D #2E278D #3E34BD #645CD2

Accessibility & contrast

On white

11.73
#2E278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E278D
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E278D#FFFFFF#000000##FFFFFF
##2E278D1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e278d;
/* rgb */ color: rgb(46, 39, 141);
/* oklch */ color: oklch(35.6% 0.161 277.4);
Tailwind
colors: {
  custom: {
    50: '#7462af',
    500: '#2e278d',
    950: '#000000',
  },
}
SCSS
$custom: #2e278d;
$custom-light: #7462af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e278d",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 244.118,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35594,
    "c": 0.16105,
    "h": 277.4
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#2E278D
secondary
#B1B759
accent
#E048D6
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E278D

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

Preview Lab → · Contrast checker → · Palette generator →

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