#2E278B#2E278B

#2E278B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.158 H 277.7°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2E278B
RGBrgb(46, 39, 139)
HSLhsl(244, 56%, 35%)
HSVhsv(244, 72%, 55%)
CMYKcmyk(66.9%, 71.9%, 0%, 45.5%)
CIE-LABlab(23.32, 35.09, -54.39)
CIE-LCHlch(23.32, 64.73, 302.83°)
OKLaboklab(35.39% 0.0212 -0.157)
OKLCHoklch(35.39% 0.158 277.7)
XYZxyz(6.5109, 3.8954, 24.8299)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E278B #848B27
analogous
#27528B #2E278B #60278B
triadic
#2E278B #8B2E27 #278B2E
tetradic
#2E278B #8B2752 #848B27 #278B60
square
#2E278B #8B2752 #848B27 #278B60
split-complementary
#2E278B #8B6027 #528B27
monochromatic
#0E0C2B #1E1A5B #2E278B #3E34BB #645BD1

Accessibility & contrast

On white

11.80
#2E278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2E278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E278B
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E278B#FFFFFF#000000##FFFFFF
##2E278B1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e278b;
/* rgb */ color: rgb(46, 39, 139);
/* oklch */ color: oklch(35.4% 0.158 277.7);
Tailwind
colors: {
  custom: {
    50: '#7462ae',
    500: '#2e278b',
    950: '#000000',
  },
}
SCSS
$custom: #2e278b;
$custom-light: #7462ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e278b",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 244.2,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35393,
    "c": 0.15843,
    "h": 277.7
  },
  "luminance": 0.03896
}

Semantic roles & 50–950 ramp

primary
#2E278B
secondary
#B0B658
accent
#DF48D5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E278B

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

Preview Lab → · Contrast checker → · Palette generator →

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