#28239A#28239A

#28239A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.183 H 273.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#28239A
RGBrgb(40, 35, 154)
HSLhsl(243, 63%, 37%)
HSVhsv(243, 77%, 60%)
CMYKcmyk(74%, 77.3%, 0%, 39.6%)
CIE-LABlab(23.62, 41.81, -63.18)
CIE-LCHlch(23.62, 75.77, 303.49°)
OKLaboklab(35.96% 0.0126 -0.1828)
OKLCHoklch(35.96% 0.183 273.9)
XYZxyz(7.3069, 3.9855, 30.9498)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28239A #959A23
analogous
#235A9A #28239A #64239A
triadic
#28239A #9A2823 #239A28
tetradic
#28239A #9A235A #959A23 #239A64
square
#28239A #9A235A #959A23 #239A64
split-complementary
#28239A #9A6423 #5A9A23
monochromatic
#0E0C36 #1B1868 #28239A #352ECC #625DDA

Accessibility & contrast

On white

11.68
#28239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#28239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28239A
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28239A#FFFFFF#000000##FFFFFF
##28239A1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28239a;
/* rgb */ color: rgb(40, 35, 154);
/* oklch */ color: oklch(36.0% 0.183 273.9);
Tailwind
colors: {
  custom: {
    50: '#7560b9',
    500: '#28239a',
    950: '#000000',
  },
}
SCSS
$custom: #28239a;
$custom-light: #7560b9;
$custom-dark: #000000;
JSON
{
  "hex": "#28239a",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 242.521,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35963,
    "c": 0.18321,
    "h": 273.9
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#28239A
secondary
#BBBF5A
accent
#E642DF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28239A

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

Preview Lab → · Contrast checker → · Palette generator →

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