#2E288C#2E288C

#2E288C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.159 H 277.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2E288C
RGBrgb(46, 40, 140)
HSLhsl(244, 56%, 35%)
HSVhsv(244, 71%, 55%)
CMYKcmyk(67.1%, 71.4%, 0%, 45.1%)
CIE-LABlab(23.64, 34.82, -54.49)
CIE-LCHlch(23.64, 64.67, 302.58°)
OKLaboklab(35.65% 0.0203 -0.1573)
OKLCHoklch(35.65% 0.159 277.3)
XYZxyz(6.6176, 3.9913, 25.2275)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E288C #868C28
analogous
#28548C #2E288C #60288C
triadic
#2E288C #8C2E28 #288C2E
tetradic
#2E288C #8C2854 #868C28 #288C60
square
#2E288C #8C2854 #868C28 #288C60
split-complementary
#2E288C #8C6028 #548C28
monochromatic
#0F0D2D #1E1A5C #2E288C #3E36BC #645ED1

Accessibility & contrast

On white

11.68
#2E288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2E288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E288C
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E288C#FFFFFF#000000##FFFFFF
##2E288C1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e288c;
/* rgb */ color: rgb(46, 40, 140);
/* oklch */ color: oklch(35.7% 0.159 277.3);
Tailwind
colors: {
  custom: {
    50: '#7463af',
    500: '#2e288c',
    950: '#000000',
  },
}
SCSS
$custom: #2e288c;
$custom-light: #7463af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e288c",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 243.6,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35652,
    "c": 0.15859,
    "h": 277.3
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#2E288C
secondary
#B1B65A
accent
#DF49D6
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E288C

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

Preview Lab → · Contrast checker → · Palette generator →

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