#28309E#28309E

#28309E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.175 H 271.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#28309E
RGBrgb(40, 48, 158)
HSLhsl(236, 60%, 39%)
HSVhsv(236, 75%, 62%)
CMYKcmyk(74.7%, 69.6%, 0%, 38%)
CIE-LABlab(26.83, 35.44, -60.35)
CIE-LCHlch(26.83, 69.98, 300.43°)
OKLaboklab(38.38% 0.0051 -0.1746)
OKLCHoklch(38.38% 0.175 271.7)
XYZxyz(8.1015, 5.0328, 32.8856)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28309E #9E9628
analogous
#286B9E #28309E #5B289E
triadic
#28309E #9E2830 #309E28
tetradic
#28309E #9E286B #9E9628 #289E5B
square
#28309E #9E286B #9E9628 #289E5B
split-complementary
#28309E #9E5B28 #6B9E28
monochromatic
#0F123C #1C216D #28309E #3741CC #686FD9

Accessibility & contrast

On white

10.46
#28309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#28309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28309E
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28309E#FFFFFF#000000##FFFFFF
##28309E1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #28309e;
/* rgb */ color: rgb(40, 48, 158);
/* oklch */ color: oklch(38.4% 0.175 271.7);
Tailwind
colors: {
  custom: {
    50: '#7569bc',
    500: '#28309e',
    950: '#000000',
  },
}
SCSS
$custom: #28309e;
$custom-light: #7569bc;
$custom-dark: #000000;
JSON
{
  "hex": "#28309e",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 235.932,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38377,
    "c": 0.17465,
    "h": 271.7
  },
  "luminance": 0.05034
}

Semantic roles & 50–950 ramp

primary
#28309E
secondary
#BFB963
accent
#D845E3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #28309E

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

Preview Lab → · Contrast checker → · Palette generator →

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