#2E286E#2E286E

#2E286E is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.8% C 0.117 H 281.7°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2E286E
RGBrgb(46, 40, 110)
HSLhsl(245, 47%, 29%)
HSVhsv(245, 64%, 43%)
CMYKcmyk(58.2%, 63.6%, 0%, 56.9%)
CIE-LABlab(20.92, 24.38, -39.92)
CIE-LCHlch(20.92, 46.78, 301.41°)
OKLaboklab(32.83% 0.0237 -0.1146)
OKLCHoklch(32.83% 0.117 281.7)
XYZxyz(4.6991, 3.2239, 15.1235)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E286E #686E28
analogous
#28456E #2E286E #51286E
triadic
#2E286E #6E2E28 #286E2E
tetradic
#2E286E #6E2845 #686E28 #286E51
square
#2E286E #6E2845 #686E28 #286E51
split-complementary
#2E286E #6E5128 #456E28
monochromatic
#090816 #1B1841 #2E286E #41389B #5A51C0

Accessibility & contrast

On white

12.77
#2E286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E286E
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E286E#FFFFFF#000000##FFFFFF
##2E286E1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#00306D
Tritanopia (blue-blind)
#0F3947
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e286e;
/* rgb */ color: rgb(46, 40, 110);
/* oklch */ color: oklch(32.8% 0.117 281.7);
Tailwind
colors: {
  custom: {
    50: '#6e6298',
    500: '#2e286e',
    950: '#000000',
  },
}
SCSS
$custom: #2e286e;
$custom-light: #6e6298;
$custom-dark: #000000;
JSON
{
  "hex": "#2e286e",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 245.143,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32834,
    "c": 0.11699,
    "h": 281.7
  },
  "luminance": 0.03224
}

Semantic roles & 50–950 ramp

primary
#2E286E
secondary
#9AA051
accent
#D651CB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E286E

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

Preview Lab → · Contrast checker → · Palette generator →

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