#2E286B#2E286B

#2E286B is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.6% C 0.113 H 282.2°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2E286B
RGBrgb(46, 40, 107)
HSLhsl(245, 46%, 29%)
HSVhsv(245, 63%, 42%)
CMYKcmyk(57%, 62.6%, 0%, 58%)
CIE-LABlab(20.67, 23.33, -38.38)
CIE-LCHlch(20.67, 44.91, 301.29°)
OKLaboklab(32.57% 0.0238 -0.11)
OKLCHoklch(32.57% 0.113 282.2)
XYZxyz(4.5385, 3.1597, 14.2778)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E286B #656B28
analogous
#28446B #2E286B #50286B
triadic
#2E286B #6B2E28 #286B2E
tetradic
#2E286B #6B2844 #656B28 #286B50
square
#2E286B #6B2844 #656B28 #286B50
split-complementary
#2E286B #6B5028 #446B28
monochromatic
#0A0816 #1B173E #2E286B #413998 #5A50BE

Accessibility & contrast

On white

12.87
#2E286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E286B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E286B
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E286B#FFFFFF#000000##FFFFFF
##2E286B1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#133845
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e286b;
/* rgb */ color: rgb(46, 40, 107);
/* oklch */ color: oklch(32.6% 0.113 282.2);
Tailwind
colors: {
  custom: {
    50: '#6d6296',
    500: '#2e286b',
    950: '#000000',
  },
}
SCSS
$custom: #2e286b;
$custom-light: #6d6296;
$custom-dark: #000000;
JSON
{
  "hex": "#2e286b",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 245.373,
    "s": 45.578,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32575,
    "c": 0.11257,
    "h": 282.2
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#2E286B
secondary
#979D51
accent
#D553CA
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2E286B

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

Preview Lab → · Contrast checker → · Palette generator →

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