#28307D#28307D

#28307D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.129 H 273.3°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#28307D
RGBrgb(40, 48, 125)
HSLhsl(234, 52%, 32%)
HSVhsv(234, 68%, 49%)
CMYKcmyk(68%, 61.6%, 0%, 51%)
CIE-LABlab(23.82, 23.30, -44.81)
CIE-LCHlch(23.82, 50.50, 297.47°)
OKLaboklab(35.25% 0.0074 -0.129)
OKLCHoklch(35.25% 0.129 273.3)
XYZxyz(5.6325, 4.0452, 19.8820)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28307D #7D7528
analogous
#285B7D #28307D #4B287D
triadic
#28307D #7D2830 #307D28
tetradic
#28307D #7D285B #7D7528 #287D4B
square
#28307D #7D285B #7D7528 #287D4B
split-complementary
#28307D #7D4B28 #5B7D28
monochromatic
#0A0C20 #191E4F #28307D #3742AB #5661C9

Accessibility & contrast

On white

11.61
#28307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#28307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28307D
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28307D#FFFFFF#000000##FFFFFF
##28307D1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28307d;
/* rgb */ color: rgb(40, 48, 125);
/* oklch */ color: oklch(35.3% 0.129 273.3);
Tailwind
colors: {
  custom: {
    50: '#6d68a3',
    500: '#28307d',
    950: '#000000',
  },
}
SCSS
$custom: #28307d;
$custom-light: #6d68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28307d",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 234.353,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3525,
    "c": 0.12926,
    "h": 273.3
  },
  "luminance": 0.04046
}

Semantic roles & 50–950 ramp

primary
#28307D
secondary
#AEA553
accent
#CE4DDB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #28307D

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

Preview Lab → · Contrast checker → · Palette generator →

#28307D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva