#28238B#28238B

#28238B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.164 H 275.5°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#28238B
RGBrgb(40, 35, 139)
HSLhsl(243, 60%, 34%)
HSVhsv(243, 75%, 55%)
CMYKcmyk(71.2%, 74.8%, 0%, 45.5%)
CIE-LABlab(22.00, 36.75, -56.58)
CIE-LCHlch(22.00, 67.47, 303.01°)
OKLaboklab(34.34% 0.0157 -0.1635)
OKLCHoklch(34.34% 0.164 275.5)
XYZxyz(6.1348, 3.5167, 24.7766)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28238B #868B23
analogous
#23528B #28238B #5C238B
triadic
#28238B #8B2823 #238B28
tetradic
#28238B #8B2352 #868B23 #238B5C
square
#28238B #8B2352 #868B23 #238B5C
split-complementary
#28238B #8B5C23 #528B23
monochromatic
#0C0A29 #1A175A #28238B #362FBC #5B54D4

Accessibility & contrast

On white

12.33
#28238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#28238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28238B
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28238B#FFFFFF#000000##FFFFFF
##28238B1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28238b;
/* rgb */ color: rgb(40, 35, 139);
/* oklch */ color: oklch(34.3% 0.164 275.5);
Tailwind
colors: {
  custom: {
    50: '#715fae',
    500: '#28238b',
    950: '#000000',
  },
}
SCSS
$custom: #28238b;
$custom-light: #715fae;
$custom-dark: #000000;
JSON
{
  "hex": "#28238b",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 242.885,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34335,
    "c": 0.16429,
    "h": 275.5
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#28238B
secondary
#B3B852
accent
#E345DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #28238B

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

Preview Lab → · Contrast checker → · Palette generator →

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