#28239B#28239B

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

Color values

HEX#28239B
RGBrgb(40, 35, 155)
HSLhsl(243, 63%, 37%)
HSVhsv(243, 77%, 61%)
CMYKcmyk(74.2%, 77.4%, 0%, 39.2%)
CIE-LABlab(23.73, 42.14, -63.61)
CIE-LCHlch(23.73, 76.31, 303.52°)
OKLaboklab(36.07% 0.0124 -0.184)
OKLCHoklch(36.07% 0.184 273.9)
XYZxyz(7.3905, 4.0190, 31.3902)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28239B #969B23
analogous
#235A9B #28239B #64239B
triadic
#28239B #9B2823 #239B28
tetradic
#28239B #9B235A #969B23 #239B64
square
#28239B #9B235A #969B23 #239B64
split-complementary
#28239B #9B6423 #5A9B23
monochromatic
#0E0C37 #1B1869 #28239B #352ECD #635EDB

Accessibility & contrast

On white

11.64
#28239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28239B
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28239B#FFFFFF#000000##FFFFFF
##28239B1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28239b;
/* rgb */ color: rgb(40, 35, 155);
/* oklch */ color: oklch(36.1% 0.184 273.9);
Tailwind
colors: {
  custom: {
    50: '#7560ba',
    500: '#28239b',
    950: '#000000',
  },
}
SCSS
$custom: #28239b;
$custom-light: #7560ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28239b",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 242.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36074,
    "c": 0.18445,
    "h": 273.9
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28239B

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

Preview Lab → · Contrast checker → · Palette generator →

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