#28335C#28335C

#28335C is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.3% C 0.074 H 270.6°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#28335C
RGBrgb(40, 51, 92)
HSLhsl(227, 39%, 26%)
HSVhsv(227, 57%, 36%)
CMYKcmyk(56.5%, 44.6%, 0%, 63.9%)
CIE-LABlab(22.27, 8.81, -26.04)
CIE-LCHlch(22.27, 27.49, 288.69°)
OKLaboklab(33.31% 0.0008 -0.0738)
OKLCHoklch(33.31% 0.074 270.6)
XYZxyz(3.9900, 3.5912, 10.6061)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28335C #5C5128
analogous
#284D5C #28335C #37285C
triadic
#28335C #5C2833 #335C28
tetradic
#28335C #5C284D #5C5128 #285C37
square
#28335C #5C284D #5C5128 #285C37
split-complementary
#28335C #5C3728 #4D5C28
monochromatic
#090C15 #151B31 #28335C #3B4B87 #4D62B1

Accessibility & contrast

On white

12.22
#28335C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#28335C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28335C
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28335C#FFFFFF#000000##FFFFFF
##28335C1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22385E
Deuteranopia (green-blind)
#1C335B
Tritanopia (blue-blind)
#0F3C43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28335c;
/* rgb */ color: rgb(40, 51, 92);
/* oklch */ color: oklch(33.3% 0.074 270.6);
Tailwind
colors: {
  custom: {
    50: '#666a8a',
    500: '#28335c',
    950: '#000000',
  },
}
SCSS
$custom: #28335c;
$custom-light: #666a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#28335c",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 92
  },
  "hsl": {
    "h": 227.308,
    "s": 39.394,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33311,
    "c": 0.07384,
    "h": 270.6
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#28335C
secondary
#8F8251
accent
#B659CF
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #28335C

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

Preview Lab → · Contrast checker → · Palette generator →

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