#28239D#28239D

#28239D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.187 H 273.7°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#28239D
RGBrgb(40, 35, 157)
HSLhsl(242, 64%, 38%)
HSVhsv(242, 78%, 62%)
CMYKcmyk(74.5%, 77.7%, 0%, 38.4%)
CIE-LABlab(23.96, 42.80, -64.47)
CIE-LCHlch(23.96, 77.39, 303.58°)
OKLaboklab(36.3% 0.012 -0.1865)
OKLCHoklch(36.3% 0.187 273.7)
XYZxyz(7.5599, 4.0867, 32.2822)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28239D #989D23
analogous
#235B9D #28239D #65239D
triadic
#28239D #9D2823 #239D28
tetradic
#28239D #9D235B #989D23 #239D65
square
#28239D #9D235B #989D23 #239D65
split-complementary
#28239D #9D6523 #5B9D23
monochromatic
#0E0D39 #1B186B #28239D #352ECF #645FDB

Accessibility & contrast

On white

11.55
#28239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#28239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28239D
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28239D#FFFFFF#000000##FFFFFF
##28239D1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28239d;
/* rgb */ color: rgb(40, 35, 157);
/* oklch */ color: oklch(36.3% 0.187 273.7);
Tailwind
colors: {
  custom: {
    50: '#7660bb',
    500: '#28239d',
    950: '#000000',
  },
}
SCSS
$custom: #28239d;
$custom-light: #7660bb;
$custom-dark: #000000;
JSON
{
  "hex": "#28239d",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 242.459,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36296,
    "c": 0.1869,
    "h": 273.7
  },
  "luminance": 0.04088
}

Semantic roles & 50–950 ramp

primary
#28239D
secondary
#BCC05C
accent
#E741E0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28239D

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

Preview Lab → · Contrast checker → · Palette generator →

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