#28307C#28307C

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

Color values

HEX#28307C
RGBrgb(40, 48, 124)
HSLhsl(234, 51%, 32%)
HSVhsv(234, 68%, 49%)
CMYKcmyk(67.7%, 61.3%, 0%, 51.4%)
CIE-LABlab(23.74, 22.92, -44.31)
CIE-LCHlch(23.74, 49.89, 297.35°)
OKLaboklab(35.16% 0.0074 -0.1276)
OKLCHoklch(35.16% 0.128 273.3)
XYZxyz(5.5689, 4.0198, 19.5473)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28307C #7C7428
analogous
#285A7C #28307C #4A287C
triadic
#28307C #7C2830 #307C28
tetradic
#28307C #7C285A #7C7428 #287C4A
square
#28307C #7C285A #7C7428 #287C4A
split-complementary
#28307C #7C4A28 #5A7C28
monochromatic
#0A0C1F #191E4E #28307C #3742AA #5661C8

Accessibility & contrast

On white

11.64
#28307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28307C
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28307C#FFFFFF#000000##FFFFFF
##28307C1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28307c;
/* rgb */ color: rgb(40, 48, 124);
/* oklch */ color: oklch(35.2% 0.128 273.3);
Tailwind
colors: {
  custom: {
    50: '#6d68a3',
    500: '#28307c',
    950: '#000000',
  },
}
SCSS
$custom: #28307c;
$custom-light: #6d68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28307c",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 234.286,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35162,
    "c": 0.1278,
    "h": 273.3
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#28307C
secondary
#ADA552
accent
#CD4DDB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #28307C

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

Preview Lab → · Contrast checker → · Palette generator →

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