#28396F#28396F

#28396F is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.1% C 0.096 H 268.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#28396F
RGBrgb(40, 57, 111)
HSLhsl(226, 47%, 30%)
HSVhsv(226, 64%, 44%)
CMYKcmyk(64%, 48.6%, 0%, 56.5%)
CIE-LABlab(25.34, 11.72, -33.46)
CIE-LCHlch(25.34, 35.46, 289.31°)
OKLaboklab(36.06% -0.003 -0.0956)
OKLCHoklch(36.06% 0.096 268.2)
XYZxyz(5.2065, 4.5246, 15.6348)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28396F #6F5E28
analogous
#285D6F #28396F #3B286F
triadic
#28396F #6F2839 #396F28
tetradic
#28396F #6F285D #6F5E28 #286F3B
square
#28396F #6F285D #6F5E28 #286F3B
split-complementary
#28396F #6F3B28 #5D6F28
monochromatic
#080C16 #182242 #28396F #38509C #516CC0

Accessibility & contrast

On white

11.02
#28396F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#28396F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28396F
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28396F#FFFFFF#000000##FFFFFF
##28396F1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3F71
Deuteranopia (green-blind)
#14396E
Tritanopia (blue-blind)
#00454E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #28396f;
/* rgb */ color: rgb(40, 57, 111);
/* oklch */ color: oklch(36.1% 0.096 268.2);
Tailwind
colors: {
  custom: {
    50: '#696f99',
    500: '#28396f',
    950: '#000000',
  },
}
SCSS
$custom: #28396f;
$custom-light: #696f99;
$custom-dark: #000000;
JSON
{
  "hex": "#28396f",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 111
  },
  "hsl": {
    "h": 225.634,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36055,
    "c": 0.09561,
    "h": 268.2
  },
  "luminance": 0.04525
}

Semantic roles & 50–950 ramp

primary
#28396F
secondary
#A18E51
accent
#B751D7
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #28396F

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

Preview Lab → · Contrast checker → · Palette generator →

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