#28237E#28237E

#28237E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.147 H 277.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#28237E
RGBrgb(40, 35, 126)
HSLhsl(243, 57%, 32%)
HSVhsv(243, 72%, 49%)
CMYKcmyk(68.3%, 72.2%, 0%, 50.6%)
CIE-LABlab(20.67, 32.25, -50.59)
CIE-LCHlch(20.67, 60.00, 302.51°)
OKLaboklab(32.98% 0.0181 -0.1461)
OKLCHoklch(32.98% 0.147 277.1)
XYZxyz(5.2408, 3.1591, 20.0682)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28237E #797E23
analogous
#234C7E #28237E #56237E
triadic
#28237E #7E2823 #237E28
tetradic
#28237E #7E234C #797E23 #237E56
square
#28237E #7E234C #797E23 #237E56
split-complementary
#28237E #7E5623 #4C7E23
monochromatic
#0A081E #19164E #28237E #3730AE #554ECE

Accessibility & contrast

On white

12.87
#28237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#28237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28237E
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28237E#FFFFFF#000000##FFFFFF
##28237E1.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)
#003681
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #28237e;
/* rgb */ color: rgb(40, 35, 126);
/* oklch */ color: oklch(33.0% 0.147 277.1);
Tailwind
colors: {
  custom: {
    50: '#6e5fa4',
    500: '#28237e',
    950: '#000000',
  },
}
SCSS
$custom: #28237e;
$custom-light: #6e5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#28237e",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 243.297,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32979,
    "c": 0.14719,
    "h": 277.1
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#28237E
secondary
#ABB04C
accent
#E048D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28237E

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

Preview Lab → · Contrast checker → · Palette generator →

#28237E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva