#28327F#28327F

#28327F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.8% C 0.129 H 272.5°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#28327F
RGBrgb(40, 50, 127)
HSLhsl(233, 52%, 33%)
HSVhsv(233, 69%, 50%)
CMYKcmyk(68.5%, 60.6%, 0%, 50.2%)
CIE-LABlab(24.53, 22.68, -44.92)
CIE-LCHlch(24.53, 50.32, 296.79°)
OKLaboklab(35.83% 0.0055 -0.1294)
OKLCHoklch(35.83% 0.129 272.5)
XYZxyz(5.8452, 4.2641, 20.5896)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28327F #7F7528
analogous
#285E7F #28327F #49287F
triadic
#28327F #7F2832 #327F28
tetradic
#28327F #7F285E #7F7528 #287F49
square
#28327F #7F285E #7F7528 #287F49
split-complementary
#28327F #7F4928 #5E7F28
monochromatic
#0B0D22 #192050 #28327F #3744AE #5764CA

Accessibility & contrast

On white

11.33
#28327F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#28327F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28327F
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28327F#FFFFFF#000000##FFFFFF
##28327F1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #28327f;
/* rgb */ color: rgb(40, 50, 127);
/* oklch */ color: oklch(35.8% 0.129 272.5);
Tailwind
colors: {
  custom: {
    50: '#6d69a5',
    500: '#28327f',
    950: '#000000',
  },
}
SCSS
$custom: #28327f;
$custom-light: #6d69a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28327f",
  "rgb": {
    "r": 40,
    "g": 50,
    "b": 127
  },
  "hsl": {
    "h": 233.103,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35826,
    "c": 0.12948,
    "h": 272.5
  },
  "luminance": 0.04265
}

Semantic roles & 50–950 ramp

primary
#28327F
secondary
#AFA554
accent
#CB4CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #28327F

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

Preview Lab → · Contrast checker → · Palette generator →

#28327F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva