#28336F#28336F

#28336F is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.7% C 0.104 H 272.1°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#28336F
RGBrgb(40, 51, 111)
HSLhsl(231, 47%, 30%)
HSVhsv(231, 64%, 44%)
CMYKcmyk(64%, 54.1%, 0%, 56.5%)
CIE-LABlab(23.56, 15.92, -36.32)
CIE-LCHlch(23.56, 39.65, 293.67°)
OKLaboklab(34.71% 0.0038 -0.104)
OKLCHoklch(34.71% 0.104 272.1)
XYZxyz(4.9272, 3.9661, 15.5417)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28336F #6F6428
analogous
#28576F #28336F #41286F
triadic
#28336F #6F2833 #336F28
tetradic
#28336F #6F2857 #6F6428 #286F41
square
#28336F #6F2857 #6F6428 #286F41
split-complementary
#28336F #6F4128 #576F28
monochromatic
#080A16 #181E42 #28336F #38489C #5162C0

Accessibility & contrast

On white

11.71
#28336F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#28336F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28336F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28336F#FFFFFF#000000##FFFFFF
##28336F1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113B71
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28336f;
/* rgb */ color: rgb(40, 51, 111);
/* oklch */ color: oklch(34.7% 0.104 272.1);
Tailwind
colors: {
  custom: {
    50: '#6a6a99',
    500: '#28336f',
    950: '#000000',
  },
}
SCSS
$custom: #28336f;
$custom-light: #6a6a99;
$custom-dark: #000000;
JSON
{
  "hex": "#28336f",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 230.704,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34706,
    "c": 0.1041,
    "h": 272.1
  },
  "luminance": 0.03966
}

Semantic roles & 50–950 ramp

primary
#28336F
secondary
#A19551
accent
#C251D7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #28336F

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

Preview Lab → · Contrast checker → · Palette generator →

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