#28327E#28327E

#28327E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.128 H 272.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#28327E
RGBrgb(40, 50, 126)
HSLhsl(233, 52%, 33%)
HSVhsv(233, 68%, 49%)
CMYKcmyk(68.3%, 60.3%, 0%, 50.6%)
CIE-LABlab(24.44, 22.30, -44.43)
CIE-LCHlch(24.44, 49.71, 296.65°)
OKLaboklab(35.74% 0.0055 -0.1279)
OKLCHoklch(35.74% 0.128 272.5)
XYZxyz(5.7803, 4.2382, 20.2480)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28327E #7E7428
analogous
#285D7E #28327E #49287E
triadic
#28327E #7E2832 #327E28
tetradic
#28327E #7E285D #7E7428 #287E49
square
#28327E #7E285D #7E7428 #287E49
split-complementary
#28327E #7E4928 #5D7E28
monochromatic
#0B0D21 #192050 #28327E #3744AC #5764CA

Accessibility & contrast

On white

11.36
#28327E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28327E
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28327E#FFFFFF#000000##FFFFFF
##28327E1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28327e;
/* rgb */ color: rgb(40, 50, 126);
/* oklch */ color: oklch(35.7% 0.128 272.5);
Tailwind
colors: {
  custom: {
    50: '#6d69a4',
    500: '#28327e',
    950: '#000000',
  },
}
SCSS
$custom: #28327e;
$custom-light: #6d69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28327e",
  "rgb": {
    "r": 40,
    "g": 50,
    "b": 126
  },
  "hsl": {
    "h": 233.023,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35739,
    "c": 0.12802,
    "h": 272.5
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#28327E
secondary
#AFA453
accent
#CB4DDB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #28327E

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

Preview Lab → · Contrast checker → · Palette generator →

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