#2E287C#2E287C

#2E287C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.137 H 279.5°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2E287C
RGBrgb(46, 40, 124)
HSLhsl(244, 51%, 32%)
HSVhsv(244, 68%, 49%)
CMYKcmyk(62.9%, 67.7%, 0%, 51.4%)
CIE-LABlab(22.14, 29.28, -46.90)
CIE-LCHlch(22.14, 55.29, 301.97°)
OKLaboklab(34.1% 0.0225 -0.1351)
OKLCHoklch(34.1% 0.137 279.5)
XYZxyz(5.5224, 3.5533, 19.4597)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E287C #767C28
analogous
#284C7C #2E287C #58287C
triadic
#2E287C #7C2E28 #287C2E
tetradic
#2E287C #7C284C #767C28 #287C58
square
#2E287C #7C284C #767C28 #287C58
split-complementary
#2E287C #7C5828 #4C7C28
monochromatic
#0C0A1F #1D194E #2E287C #3F37AA #5E56C8

Accessibility & contrast

On white

12.27
#2E287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E287C
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E287C#FFFFFF#000000##FFFFFF
##2E287C1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e287c;
/* rgb */ color: rgb(46, 40, 124);
/* oklch */ color: oklch(34.1% 0.137 279.5);
Tailwind
colors: {
  custom: {
    50: '#7062a3',
    500: '#2e287c',
    950: '#000000',
  },
}
SCSS
$custom: #2e287c;
$custom-light: #7062a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e287c",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 244.286,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34102,
    "c": 0.13694,
    "h": 279.5
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#2E287C
secondary
#A7AD52
accent
#DB4DD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E287C

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

Preview Lab → · Contrast checker → · Palette generator →

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