#28317B#28317B

#28317B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.3% C 0.125 H 273.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#28317B
RGBrgb(40, 49, 123)
HSLhsl(233, 51%, 32%)
HSVhsv(233, 67%, 48%)
CMYKcmyk(67.5%, 60.2%, 0%, 51.8%)
CIE-LABlab(23.93, 21.86, -43.37)
CIE-LCHlch(23.93, 48.57, 296.74°)
OKLaboklab(35.28% 0.0064 -0.1248)
OKLCHoklch(35.28% 0.125 273)
XYZxyz(5.5473, 4.0773, 19.2297)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28317B #7B7228
analogous
#285B7B #28317B #49287B
triadic
#28317B #7B2831 #317B28
tetradic
#28317B #7B285B #7B7228 #287B49
square
#28317B #7B285B #7B7228 #287B49
split-complementary
#28317B #7B4928 #5B7B28
monochromatic
#0A0C1F #191F4D #28317B #3743A9 #5662C8

Accessibility & contrast

On white

11.57
#28317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#28317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28317B
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28317B#FFFFFF#000000##FFFFFF
##28317B1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28317b;
/* rgb */ color: rgb(40, 49, 123);
/* oklch */ color: oklch(35.3% 0.125 273.0);
Tailwind
colors: {
  custom: {
    50: '#6c69a2',
    500: '#28317b',
    950: '#000000',
  },
}
SCSS
$custom: #28317b;
$custom-light: #6c69a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28317b",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 233.494,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35276,
    "c": 0.12499,
    "h": 273
  },
  "luminance": 0.04078
}

Semantic roles & 50–950 ramp

primary
#28317B
secondary
#ADA352
accent
#CB4DDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #28317B

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

Preview Lab → · Contrast checker → · Palette generator →

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