#28319C#28319C

#28319C is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.171 H 271.6°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#28319C
RGBrgb(40, 49, 156)
HSLhsl(235, 59%, 38%)
HSVhsv(235, 74%, 61%)
CMYKcmyk(74.4%, 68.6%, 0%, 38.8%)
CIE-LABlab(26.87, 34.09, -59.06)
CIE-LCHlch(26.87, 68.19, 299.99°)
OKLaboklab(38.35% 0.0047 -0.1708)
OKLCHoklch(38.35% 0.171 271.6)
XYZxyz(7.9721, 5.0472, 32.0001)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28319C #9C9328
analogous
#286B9C #28319C #59289C
triadic
#28319C #9C2831 #319C28
tetradic
#28319C #9C286B #9C9328 #289C59
square
#28319C #9C286B #9C9328 #289C59
split-complementary
#28319C #9C5928 #6B9C28
monochromatic
#0F123B #1C226B #28319C #3641CB #676FD8

Accessibility & contrast

On white

10.45
#28319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#28319C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28319C
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28319C#FFFFFF#000000##FFFFFF
##28319C1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #28319c;
/* rgb */ color: rgb(40, 49, 156);
/* oklch */ color: oklch(38.3% 0.171 271.6);
Tailwind
colors: {
  custom: {
    50: '#7469ba',
    500: '#28319c',
    950: '#000000',
  },
}
SCSS
$custom: #28319c;
$custom-light: #7469ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28319c",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 235.345,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38347,
    "c": 0.17088,
    "h": 271.6
  },
  "luminance": 0.05048
}

Semantic roles & 50–950 ramp

primary
#28319C
secondary
#BEB762
accent
#D645E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #28319C

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

Preview Lab → · Contrast checker → · Palette generator →

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