#28237B#28237B

#28237B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.143 H 277.5°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#28237B
RGBrgb(40, 35, 123)
HSLhsl(243, 56%, 31%)
HSVhsv(243, 72%, 48%)
CMYKcmyk(67.5%, 71.5%, 0%, 51.8%)
CIE-LABlab(20.37, 31.19, -49.18)
CIE-LCHlch(20.37, 58.23, 302.39°)
OKLaboklab(32.67% 0.0186 -0.1419)
OKLCHoklch(32.67% 0.143 277.5)
XYZxyz(5.0501, 3.0828, 19.0640)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28237B #767B23
analogous
#234A7B #28237B #54237B
triadic
#28237B #7B2823 #237B28
tetradic
#28237B #7B234A #767B23 #237B54
square
#28237B #7B234A #767B23 #237B54
split-complementary
#28237B #7B5423 #4A7B23
monochromatic
#09081C #19154B #28237B #3731AB #544CCC

Accessibility & contrast

On white

12.99
#28237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#28237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28237B
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28237B#FFFFFF#000000##FFFFFF
##28237B1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28237b;
/* rgb */ color: rgb(40, 35, 123);
/* oklch */ color: oklch(32.7% 0.143 277.5);
Tailwind
colors: {
  custom: {
    50: '#6e5fa2',
    500: '#28237b',
    950: '#000000',
  },
}
SCSS
$custom: #28237b;
$custom-light: #6e5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#28237b",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 243.409,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32675,
    "c": 0.14313,
    "h": 277.5
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#28237B
secondary
#A8AE4C
accent
#DF49D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28237B

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

Preview Lab → · Contrast checker → · Palette generator →

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