#28309B#28309B

#28309B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.171 H 271.8°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#28309B
RGBrgb(40, 48, 155)
HSLhsl(236, 59%, 38%)
HSVhsv(236, 74%, 61%)
CMYKcmyk(74.2%, 69%, 0%, 39.2%)
CIE-LABlab(26.54, 34.36, -59.00)
CIE-LCHlch(26.54, 68.27, 300.22°)
OKLaboklab(38.08% 0.0055 -0.1706)
OKLCHoklch(38.08% 0.171 271.8)
XYZxyz(7.8464, 4.9308, 31.5422)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28309B #9B9328
analogous
#28699B #28309B #59289B
triadic
#28309B #9B2830 #309B28
tetradic
#28309B #9B2869 #9B9328 #289B59
square
#28309B #9B2869 #9B9328 #289B59
split-complementary
#28309B #9B5928 #699B28
monochromatic
#0F123A #1B216A #28309B #3540CB #666ED7

Accessibility & contrast

On white

10.57
#28309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28309B
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28309B#FFFFFF#000000##FFFFFF
##28309B1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #28309b;
/* rgb */ color: rgb(40, 48, 155);
/* oklch */ color: oklch(38.1% 0.171 271.8);
Tailwind
colors: {
  custom: {
    50: '#7469ba',
    500: '#28309b',
    950: '#000000',
  },
}
SCSS
$custom: #28309b;
$custom-light: #7469ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28309b",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 235.826,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38077,
    "c": 0.17071,
    "h": 271.8
  },
  "luminance": 0.04932
}

Semantic roles & 50–950 ramp

primary
#28309B
secondary
#BDB761
accent
#D746E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #28309B

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

Preview Lab → · Contrast checker → · Palette generator →

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