#28238E#28238E

#28238E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.168 H 275.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#28238E
RGBrgb(40, 35, 142)
HSLhsl(243, 60%, 35%)
HSVhsv(243, 75%, 56%)
CMYKcmyk(71.8%, 75.4%, 0%, 44.3%)
CIE-LABlab(22.32, 37.78, -57.92)
CIE-LCHlch(22.32, 69.15, 303.11°)
OKLaboklab(34.66% 0.0151 -0.1675)
OKLCHoklch(34.66% 0.168 275.2)
XYZxyz(6.3570, 3.6056, 25.9469)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28238E #898E23
analogous
#23538E #28238E #5E238E
triadic
#28238E #8E2823 #238E28
tetradic
#28238E #8E2353 #898E23 #238E5E
square
#28238E #8E2353 #898E23 #238E5E
split-complementary
#28238E #8E5E23 #538E23
monochromatic
#0C0B2C #1A175D #28238E #362FBF #5C56D5

Accessibility & contrast

On white

12.20
#28238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#28238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28238E
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28238E#FFFFFF#000000##FFFFFF
##28238E1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28238e;
/* rgb */ color: rgb(40, 35, 142);
/* oklch */ color: oklch(34.7% 0.168 275.2);
Tailwind
colors: {
  custom: {
    50: '#725fb0',
    500: '#28238e',
    950: '#000000',
  },
}
SCSS
$custom: #28238e;
$custom-light: #725fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#28238e",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 242.804,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34656,
    "c": 0.16814,
    "h": 275.2
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#28238E
secondary
#B5B953
accent
#E444DC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #28238E

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

Preview Lab → · Contrast checker → · Palette generator →

#28238E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva