#28237A#28237A

#28237A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.142 H 277.6°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#28237A
RGBrgb(40, 35, 122)
HSLhsl(243, 55%, 31%)
HSVhsv(243, 71%, 48%)
CMYKcmyk(67.2%, 71.3%, 0%, 52.2%)
CIE-LABlab(20.27, 30.84, -48.70)
CIE-LCHlch(20.27, 57.64, 302.34°)
OKLaboklab(32.57% 0.0187 -0.1405)
OKLCHoklch(32.57% 0.142 277.6)
XYZxyz(4.9878, 3.0579, 18.7360)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28237A #757A23
analogous
#23497A #28237A #53237A
triadic
#28237A #7A2823 #237A28
tetradic
#28237A #7A2349 #757A23 #237A53
square
#28237A #7A2349 #757A23 #237A53
split-complementary
#28237A #7A5323 #497A23
monochromatic
#09081B #18154A #28237A #3831AA #534CCC

Accessibility & contrast

On white

13.03
#28237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#28237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28237A
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28237A#FFFFFF#000000##FFFFFF
##28237A1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28237a;
/* rgb */ color: rgb(40, 35, 122);
/* oklch */ color: oklch(32.6% 0.142 277.6);
Tailwind
colors: {
  custom: {
    50: '#6d5fa1',
    500: '#28237a',
    950: '#000000',
  },
}
SCSS
$custom: #28237a;
$custom-light: #6d5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#28237a",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 243.448,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32574,
    "c": 0.14177,
    "h": 277.6
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#28237A
secondary
#A7AD4C
accent
#DF49D6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28237A

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

Preview Lab → · Contrast checker → · Palette generator →

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