#28336C#28336C

#28336C is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.5% C 0.099 H 272.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#28336C
RGBrgb(40, 51, 108)
HSLhsl(230, 46%, 29%)
HSVhsv(230, 63%, 42%)
CMYKcmyk(63%, 52.8%, 0%, 57.6%)
CIE-LABlab(23.34, 14.79, -34.74)
CIE-LCHlch(23.34, 37.75, 293.06°)
OKLaboklab(34.47% 0.0035 -0.0994)
OKLCHoklch(34.47% 0.099 272)
XYZxyz(4.7648, 3.9011, 14.6863)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28336C #6C6128
analogous
#28556C #28336C #3F286C
triadic
#28336C #6C2833 #336C28
tetradic
#28336C #6C2855 #6C6128 #286C3F
square
#28336C #6C2855 #6C6128 #286C3F
split-complementary
#28336C #6C3F28 #556C28
monochromatic
#080B16 #171E3F #28336C #394899 #5062BE

Accessibility & contrast

On white

11.80
#28336C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#28336C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28336C
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28336C#FFFFFF#000000##FFFFFF
##28336C1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153B6E
Deuteranopia (green-blind)
#07356B
Tritanopia (blue-blind)
#00404A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28336c;
/* rgb */ color: rgb(40, 51, 108);
/* oklch */ color: oklch(34.5% 0.099 272.0);
Tailwind
colors: {
  custom: {
    50: '#696a96',
    500: '#28336c',
    950: '#000000',
  },
}
SCSS
$custom: #28336c;
$custom-light: #696a96;
$custom-dark: #000000;
JSON
{
  "hex": "#28336c",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 108
  },
  "hsl": {
    "h": 230.294,
    "s": 45.946,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34473,
    "c": 0.09945,
    "h": 272
  },
  "luminance": 0.03901
}

Semantic roles & 50–950 ramp

primary
#28336C
secondary
#9E9251
accent
#C052D6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #28336C

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

Preview Lab → · Contrast checker → · Palette generator →

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