#28237D#28237D

#28237D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.146 H 277.2°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#28237D
RGBrgb(40, 35, 125)
HSLhsl(243, 56%, 31%)
HSVhsv(243, 72%, 49%)
CMYKcmyk(68%, 72%, 0%, 51%)
CIE-LABlab(20.57, 31.90, -50.12)
CIE-LCHlch(20.57, 59.41, 302.47°)
OKLaboklab(32.88% 0.0183 -0.1447)
OKLCHoklch(32.88% 0.146 277.2)
XYZxyz(5.1766, 3.1334, 19.7301)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28237D #787D23
analogous
#234B7D #28237D #55237D
triadic
#28237D #7D2823 #237D28
tetradic
#28237D #7D234B #787D23 #237D55
square
#28237D #7D234B #787D23 #237D55
split-complementary
#28237D #7D5523 #4B7D23
monochromatic
#09081D #19164D #28237D #3730AD #544DCD

Accessibility & contrast

On white

12.91
#28237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28237D
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28237D#FFFFFF#000000##FFFFFF
##28237D1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #28237d;
/* rgb */ color: rgb(40, 35, 125);
/* oklch */ color: oklch(32.9% 0.146 277.2);
Tailwind
colors: {
  custom: {
    50: '#6e5fa4',
    500: '#28237d',
    950: '#000000',
  },
}
SCSS
$custom: #28237d;
$custom-light: #6e5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#28237d",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 243.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32877,
    "c": 0.14584,
    "h": 277.2
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28237D

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

Preview Lab → · Contrast checker → · Palette generator →

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