#2E285C#2E285C

#2E285C is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.4% C 0.090 H 285.2°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2E285C
RGBrgb(46, 40, 92)
HSLhsl(247, 39%, 26%)
HSVhsv(247, 57%, 36%)
CMYKcmyk(50%, 56.5%, 0%, 63.9%)
CIE-LABlab(19.52, 18.12, -30.40)
CIE-LCHlch(19.52, 35.39, 300.79°)
OKLaboklab(31.35% 0.0236 -0.0866)
OKLCHoklch(31.35% 0.09 285.2)
XYZxyz(3.8167, 2.8710, 10.4762)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E285C #565C28
analogous
#283C5C #2E285C #48285C
triadic
#2E285C #5C2E28 #285C2E
tetradic
#2E285C #5C283C #565C28 #285C48
square
#2E285C #5C283C #565C28 #285C48
split-complementary
#2E285C #5C4828 #3C5C28
monochromatic
#0B0915 #191531 #2E285C #433B87 #594DB1

Accessibility & contrast

On white

13.34
#2E285C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E285C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E285C
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E285C#FFFFFF#000000##FFFFFF
##2E285C1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E315E
Deuteranopia (green-blind)
#0D2E5B
Tritanopia (blue-blind)
#1F333D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e285c;
/* rgb */ color: rgb(46, 40, 92);
/* oklch */ color: oklch(31.4% 0.090 285.2);
Tailwind
colors: {
  custom: {
    50: '#6a628a',
    500: '#2e285c',
    950: '#000000',
  },
}
SCSS
$custom: #2e285c;
$custom-light: #6a628a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e285c",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 92
  },
  "hsl": {
    "h": 246.923,
    "s": 39.394,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31354,
    "c": 0.08972,
    "h": 285.2
  },
  "luminance": 0.02871
}

Semantic roles & 50–950 ramp

primary
#2E285C
secondary
#888F51
accent
#CF59C2
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2E285C

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

Preview Lab → · Contrast checker → · Palette generator →

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