#28237C#28237C

#28237C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.144 H 277.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#28237C
RGBrgb(40, 35, 124)
HSLhsl(243, 56%, 31%)
HSVhsv(243, 72%, 49%)
CMYKcmyk(67.7%, 71.8%, 0%, 51.4%)
CIE-LABlab(20.47, 31.54, -49.65)
CIE-LCHlch(20.47, 58.82, 302.43°)
OKLaboklab(32.78% 0.0184 -0.1433)
OKLCHoklch(32.78% 0.144 277.3)
XYZxyz(5.1130, 3.1080, 19.3953)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28237C #777C23
analogous
#234A7C #28237C #54237C
triadic
#28237C #7C2823 #237C28
tetradic
#28237C #7C234A #777C23 #237C54
square
#28237C #7C234A #777C23 #237C54
split-complementary
#28237C #7C5423 #4A7C23
monochromatic
#09081D #19164C #28237C #3730AC #544DCD

Accessibility & contrast

On white

12.95
#28237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28237C
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28237C#FFFFFF#000000##FFFFFF
##28237C1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28237c;
/* rgb */ color: rgb(40, 35, 124);
/* oklch */ color: oklch(32.8% 0.144 277.3);
Tailwind
colors: {
  custom: {
    50: '#6e5fa3',
    500: '#28237c',
    950: '#000000',
  },
}
SCSS
$custom: #28237c;
$custom-light: #6e5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#28237c",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 243.371,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32776,
    "c": 0.14449,
    "h": 277.3
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#28237C
secondary
#A9AF4C
accent
#DF49D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28237C

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

Preview Lab → · Contrast checker → · Palette generator →

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