#28236A#28236A

#28236A is a dark, moderate blue. Relative luminance 0.027; OKLCH L 31.0% C 0.119 H 280.0°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#28236A
RGBrgb(40, 35, 106)
HSLhsl(244, 50%, 28%)
HSVhsv(244, 67%, 42%)
CMYKcmyk(62.3%, 67%, 0%, 58.4%)
CIE-LABlab(18.77, 25.14, -40.84)
CIE-LCHlch(18.77, 47.96, 301.62°)
OKLaboklab(31.02% 0.0207 -0.1175)
OKLCHoklch(31.02% 0.119 280)
XYZxyz(4.0768, 2.6935, 13.9379)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28236A #656A23
analogous
#23426A #28236A #4B236A
triadic
#28236A #6A2823 #236A28
tetradic
#28236A #6A2342 #656A23 #236A4B
square
#28236A #6A2342 #656A23 #236A4B
split-complementary
#28236A #6A4B23 #426A23
monochromatic
#090817 #17143C #28236A #393298 #4E46C2

Accessibility & contrast

On white

13.65
#28236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28236A
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28236A#FFFFFF#000000##FFFFFF
##28236A1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #28236a;
/* rgb */ color: rgb(40, 35, 106);
/* oklch */ color: oklch(31.0% 0.119 280.0);
Tailwind
colors: {
  custom: {
    50: '#6a5e95',
    500: '#28236a',
    950: '#000000',
  },
}
SCSS
$custom: #28236a;
$custom-light: #6a5e95;
$custom-dark: #000000;
JSON
{
  "hex": "#28236a",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 244.225,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31022,
    "c": 0.11931,
    "h": 280
  },
  "luminance": 0.02694
}

Semantic roles & 50–950 ramp

primary
#28236A
secondary
#989D4B
accent
#DA4ED0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #28236A

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

Preview Lab → · Contrast checker → · Palette generator →

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