#2E286D#2E286D

#2E286D is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.7% C 0.116 H 281.8°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2E286D
RGBrgb(46, 40, 109)
HSLhsl(245, 46%, 29%)
HSVhsv(245, 63%, 43%)
CMYKcmyk(57.8%, 63.3%, 0%, 57.3%)
CIE-LABlab(20.84, 24.03, -39.41)
CIE-LCHlch(20.84, 46.16, 301.37°)
OKLaboklab(32.75% 0.0237 -0.1131)
OKLCHoklch(32.75% 0.116 281.8)
XYZxyz(4.6450, 3.2023, 14.8384)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E286D #676D28
analogous
#28456D #2E286D #51286D
triadic
#2E286D #6D2E28 #286D2E
tetradic
#2E286D #6D2845 #676D28 #286D51
square
#2E286D #6D2845 #676D28 #286D51
split-complementary
#2E286D #6D5128 #456D28
monochromatic
#090816 #1B1840 #2E286D #41389A #5A50BF

Accessibility & contrast

On white

12.80
#2E286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E286D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E286D
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E286D#FFFFFF#000000##FFFFFF
##2E286D1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356F
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#103846
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e286d;
/* rgb */ color: rgb(46, 40, 109);
/* oklch */ color: oklch(32.7% 0.116 281.8);
Tailwind
colors: {
  custom: {
    50: '#6d6297',
    500: '#2e286d',
    950: '#000000',
  },
}
SCSS
$custom: #2e286d;
$custom-light: #6d6297;
$custom-dark: #000000;
JSON
{
  "hex": "#2e286d",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 245.217,
    "s": 46.309,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32747,
    "c": 0.11552,
    "h": 281.8
  },
  "luminance": 0.03203
}

Semantic roles & 50–950 ramp

primary
#2E286D
secondary
#999F51
accent
#D652CA
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2E286D

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

Preview Lab → · Contrast checker → · Palette generator →

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