#2E286F#2E286F

#2E286F is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.9% C 0.118 H 281.5°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2E286F
RGBrgb(46, 40, 111)
HSLhsl(245, 47%, 30%)
HSVhsv(245, 64%, 44%)
CMYKcmyk(58.6%, 64%, 0%, 56.5%)
CIE-LABlab(21.00, 24.73, -40.43)
CIE-LCHlch(21.00, 47.40, 301.45°)
OKLaboklab(32.92% 0.0236 -0.1161)
OKLCHoklch(32.92% 0.118 281.5)
XYZxyz(4.7539, 3.2458, 15.4118)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E286F #696F28
analogous
#28466F #2E286F #51286F
triadic
#2E286F #6F2E28 #286F2E
tetradic
#2E286F #6F2846 #696F28 #286F51
square
#2E286F #6F2846 #696F28 #286F51
split-complementary
#2E286F #6F5128 #466F28
monochromatic
#090816 #1B1842 #2E286F #41389C #5A51C0

Accessibility & contrast

On white

12.73
#2E286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E286F
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E286F#FFFFFF#000000##FFFFFF
##2E286F1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#00306E
Tritanopia (blue-blind)
#0E3947
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e286f;
/* rgb */ color: rgb(46, 40, 111);
/* oklch */ color: oklch(32.9% 0.118 281.5);
Tailwind
colors: {
  custom: {
    50: '#6e6299',
    500: '#2e286f',
    950: '#000000',
  },
}
SCSS
$custom: #2e286f;
$custom-light: #6e6299;
$custom-dark: #000000;
JSON
{
  "hex": "#2e286f",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 245.07,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32922,
    "c": 0.11845,
    "h": 281.5
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#2E286F
secondary
#9BA151
accent
#D751CB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E286F

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

Preview Lab → · Contrast checker → · Palette generator →

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