#28317C#28317C

#28317C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.126 H 272.9°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#28317C
RGBrgb(40, 49, 124)
HSLhsl(234, 51%, 32%)
HSVhsv(234, 68%, 49%)
CMYKcmyk(67.7%, 60.5%, 0%, 51.4%)
CIE-LABlab(24.01, 22.23, -43.87)
CIE-LCHlch(24.01, 49.19, 296.87°)
OKLaboklab(35.36% 0.0065 -0.1263)
OKLCHoklch(35.36% 0.126 272.9)
XYZxyz(5.6103, 4.1025, 19.5611)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28317C #7C7328
analogous
#285B7C #28317C #49287C
triadic
#28317C #7C2831 #317C28
tetradic
#28317C #7C285B #7C7328 #287C49
square
#28317C #7C285B #7C7328 #287C49
split-complementary
#28317C #7C4928 #5B7C28
monochromatic
#0A0C1F #191F4E #28317C #3743AA #5662C8

Accessibility & contrast

On white

11.53
#28317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28317C
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28317C#FFFFFF#000000##FFFFFF
##28317C1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28317c;
/* rgb */ color: rgb(40, 49, 124);
/* oklch */ color: oklch(35.4% 0.126 272.9);
Tailwind
colors: {
  custom: {
    50: '#6d69a3',
    500: '#28317c',
    950: '#000000',
  },
}
SCSS
$custom: #28317c;
$custom-light: #6d69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28317c",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 233.571,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35363,
    "c": 0.12644,
    "h": 272.9
  },
  "luminance": 0.04103
}

Semantic roles & 50–950 ramp

primary
#28317C
secondary
#ADA452
accent
#CC4DDB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #28317C

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

Preview Lab → · Contrast checker → · Palette generator →

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