#28307E#28307E

#28307E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.3% C 0.131 H 273.2°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#28307E
RGBrgb(40, 48, 126)
HSLhsl(234, 52%, 33%)
HSVhsv(234, 68%, 49%)
CMYKcmyk(68.3%, 61.9%, 0%, 50.6%)
CIE-LABlab(23.90, 23.67, -45.30)
CIE-LCHlch(23.90, 51.12, 297.59°)
OKLaboklab(35.34% 0.0074 -0.1305)
OKLCHoklch(35.34% 0.131 273.2)
XYZxyz(5.6967, 4.0709, 20.2202)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28307E #7E7628
analogous
#285B7E #28307E #4B287E
triadic
#28307E #7E2830 #307E28
tetradic
#28307E #7E285B #7E7628 #287E4B
square
#28307E #7E285B #7E7628 #287E4B
split-complementary
#28307E #7E4B28 #5B7E28
monochromatic
#0B0D21 #191E50 #28307E #3742AC #5761CA

Accessibility & contrast

On white

11.58
#28307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28307E
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28307E#FFFFFF#000000##FFFFFF
##28307E1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28307e;
/* rgb */ color: rgb(40, 48, 126);
/* oklch */ color: oklch(35.3% 0.131 273.2);
Tailwind
colors: {
  custom: {
    50: '#6d68a4',
    500: '#28307e',
    950: '#000000',
  },
}
SCSS
$custom: #28307e;
$custom-light: #6d68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28307e",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 234.419,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35338,
    "c": 0.13071,
    "h": 273.2
  },
  "luminance": 0.04071
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28307E

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

Preview Lab → · Contrast checker → · Palette generator →

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