#28307B#28307B

#28307B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.126 H 273.4°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#28307B
RGBrgb(40, 48, 123)
HSLhsl(234, 51%, 32%)
HSVhsv(234, 67%, 48%)
CMYKcmyk(67.5%, 61%, 0%, 51.8%)
CIE-LABlab(23.65, 22.54, -43.82)
CIE-LCHlch(23.65, 49.28, 297.23°)
OKLaboklab(35.07% 0.0074 -0.1261)
OKLCHoklch(35.07% 0.126 273.4)
XYZxyz(5.5060, 3.9946, 19.2159)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28307B #7B7328
analogous
#285A7B #28307B #4A287B
triadic
#28307B #7B2830 #307B28
tetradic
#28307B #7B285A #7B7328 #287B4A
square
#28307B #7B285A #7B7328 #287B4A
split-complementary
#28307B #7B4A28 #5A7B28
monochromatic
#0A0C1F #191E4D #28307B #3742A9 #5661C8

Accessibility & contrast

On white

11.67
#28307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#28307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28307B
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28307B#FFFFFF#000000##FFFFFF
##28307B1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28307b;
/* rgb */ color: rgb(40, 48, 123);
/* oklch */ color: oklch(35.1% 0.126 273.4);
Tailwind
colors: {
  custom: {
    50: '#6d68a2',
    500: '#28307b',
    950: '#000000',
  },
}
SCSS
$custom: #28307b;
$custom-light: #6d68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28307b",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 234.217,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35074,
    "c": 0.12635,
    "h": 273.4
  },
  "luminance": 0.03995
}

Semantic roles & 50–950 ramp

primary
#28307B
secondary
#ADA452
accent
#CD4DDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #28307B

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

Preview Lab → · Contrast checker → · Palette generator →

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