#28307A#28307A

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

Color values

HEX#28307A
RGBrgb(40, 48, 122)
HSLhsl(234, 51%, 32%)
HSVhsv(234, 67%, 48%)
CMYKcmyk(67.2%, 60.7%, 0%, 52.2%)
CIE-LABlab(23.57, 22.17, -43.32)
CIE-LCHlch(23.57, 48.66, 297.10°)
OKLaboklab(34.99% 0.0074 -0.1247)
OKLCHoklch(34.99% 0.125 273.4)
XYZxyz(5.4437, 3.9697, 18.8879)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28307A #7A7228
analogous
#28597A #28307A #49287A
triadic
#28307A #7A2830 #307A28
tetradic
#28307A #7A2859 #7A7228 #287A49
square
#28307A #7A2859 #7A7228 #287A49
split-complementary
#28307A #7A4928 #597A28
monochromatic
#0A0C1E #191E4C #28307A #3742A8 #5560C7

Accessibility & contrast

On white

11.71
#28307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#28307A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28307A
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28307A#FFFFFF#000000##FFFFFF
##28307A1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28307a;
/* rgb */ color: rgb(40, 48, 122);
/* oklch */ color: oklch(35.0% 0.125 273.4);
Tailwind
colors: {
  custom: {
    50: '#6c68a1',
    500: '#28307a',
    950: '#000000',
  },
}
SCSS
$custom: #28307a;
$custom-light: #6c68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#28307a",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 234.146,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34987,
    "c": 0.12488,
    "h": 273.4
  },
  "luminance": 0.0397
}

Semantic roles & 50–950 ramp

primary
#28307A
secondary
#ACA352
accent
#CC4EDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #28307A

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

Preview Lab → · Contrast checker → · Palette generator →

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