#28309C#28309C

#28309C is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.172 H 271.8°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#28309C
RGBrgb(40, 48, 156)
HSLhsl(236, 59%, 38%)
HSVhsv(236, 74%, 61%)
CMYKcmyk(74.4%, 69.2%, 0%, 38.8%)
CIE-LABlab(26.63, 34.72, -59.45)
CIE-LCHlch(26.63, 68.85, 300.29°)
OKLaboklab(38.18% 0.0054 -0.1719)
OKLCHoklch(38.18% 0.172 271.8)
XYZxyz(7.9307, 4.9645, 31.9863)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28309C #9C9428
analogous
#286A9C #28309C #5A289C
triadic
#28309C #9C2830 #309C28
tetradic
#28309C #9C286A #9C9428 #289C5A
square
#28309C #9C286A #9C9428 #289C5A
split-complementary
#28309C #9C5A28 #6A9C28
monochromatic
#0F123B #1C216B #28309C #3640CB #676ED8

Accessibility & contrast

On white

10.54
#28309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#28309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28309C
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28309C#FFFFFF#000000##FFFFFF
##28309C1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #28309c;
/* rgb */ color: rgb(40, 48, 156);
/* oklch */ color: oklch(38.2% 0.172 271.8);
Tailwind
colors: {
  custom: {
    50: '#7469ba',
    500: '#28309c',
    950: '#000000',
  },
}
SCSS
$custom: #28309c;
$custom-light: #7469ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28309c",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 235.862,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38177,
    "c": 0.17202,
    "h": 271.8
  },
  "luminance": 0.04965
}

Semantic roles & 50–950 ramp

primary
#28309C
secondary
#BEB862
accent
#D845E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #28309C

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

Preview Lab → · Contrast checker → · Palette generator →

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