#28336E#28336E

#28336E is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.103 H 272.1°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#28336E
RGBrgb(40, 51, 110)
HSLhsl(231, 47%, 29%)
HSVhsv(231, 64%, 43%)
CMYKcmyk(63.6%, 53.6%, 0%, 56.9%)
CIE-LABlab(23.49, 15.54, -35.79)
CIE-LCHlch(23.49, 39.02, 293.47°)
OKLaboklab(34.63% 0.0037 -0.1025)
OKLCHoklch(34.63% 0.103 272.1)
XYZxyz(4.8724, 3.9442, 15.2534)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28336E #6E6328
analogous
#28566E #28336E #40286E
triadic
#28336E #6E2833 #336E28
tetradic
#28336E #6E2856 #6E6328 #286E40
square
#28336E #6E2856 #6E6328 #286E40
split-complementary
#28336E #6E4028 #566E28
monochromatic
#080A16 #181E41 #28336E #38489B #5162C0

Accessibility & contrast

On white

11.74
#28336E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28336E
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28336E#FFFFFF#000000##FFFFFF
##28336E1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123B70
Deuteranopia (green-blind)
#02356D
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28336e;
/* rgb */ color: rgb(40, 51, 110);
/* oklch */ color: oklch(34.6% 0.103 272.1);
Tailwind
colors: {
  custom: {
    50: '#696a98',
    500: '#28336e',
    950: '#000000',
  },
}
SCSS
$custom: #28336e;
$custom-light: #696a98;
$custom-dark: #000000;
JSON
{
  "hex": "#28336e",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 110
  },
  "hsl": {
    "h": 230.571,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34628,
    "c": 0.10256,
    "h": 272.1
  },
  "luminance": 0.03945
}

Semantic roles & 50–950 ramp

primary
#28336E
secondary
#A09451
accent
#C151D6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #28336E

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

Preview Lab → · Contrast checker → · Palette generator →

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