#28236B#28236B

#28236B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.121 H 279.8°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#28236B
RGBrgb(40, 35, 107)
HSLhsl(244, 51%, 28%)
HSVhsv(244, 67%, 42%)
CMYKcmyk(62.6%, 67.3%, 0%, 58%)
CIE-LABlab(18.86, 25.50, -41.35)
CIE-LCHlch(18.86, 48.58, 301.67°)
OKLaboklab(31.12% 0.0206 -0.119)
OKLCHoklch(31.12% 0.121 279.8)
XYZxyz(4.1291, 2.7144, 14.2134)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28236B #666B23
analogous
#23426B #28236B #4C236B
triadic
#28236B #6B2823 #236B28
tetradic
#28236B #6B2342 #666B23 #236B4C
square
#28236B #6B2342 #666B23 #236B4C
split-complementary
#28236B #6B4C23 #426B23
monochromatic
#090817 #17143D #28236B #393299 #4F46C2

Accessibility & contrast

On white

13.61
#28236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#28236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28236B
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28236B#FFFFFF#000000##FFFFFF
##28236B1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #28236b;
/* rgb */ color: rgb(40, 35, 107);
/* oklch */ color: oklch(31.1% 0.121 279.8);
Tailwind
colors: {
  custom: {
    50: '#6a5e96',
    500: '#28236b',
    950: '#000000',
  },
}
SCSS
$custom: #28236b;
$custom-light: #6a5e96;
$custom-dark: #000000;
JSON
{
  "hex": "#28236b",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 244.167,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31116,
    "c": 0.12076,
    "h": 279.8
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#28236B
secondary
#999E4B
accent
#DA4ED0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #28236B

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

Preview Lab → · Contrast checker → · Palette generator →

#28236B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva