#28238D#28238D

#28238D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.167 H 275.3°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#28238D
RGBrgb(40, 35, 141)
HSLhsl(243, 60%, 35%)
HSVhsv(243, 75%, 55%)
CMYKcmyk(71.6%, 75.2%, 0%, 44.7%)
CIE-LABlab(22.22, 37.44, -57.48)
CIE-LCHlch(22.22, 68.59, 303.08°)
OKLaboklab(34.55% 0.0153 -0.1662)
OKLCHoklch(34.55% 0.167 275.3)
XYZxyz(6.2822, 3.5757, 25.5532)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28238D #888D23
analogous
#23538D #28238D #5D238D
triadic
#28238D #8D2823 #238D28
tetradic
#28238D #8D2353 #888D23 #238D5D
square
#28238D #8D2353 #888D23 #238D5D
split-complementary
#28238D #8D5D23 #538D23
monochromatic
#0C0B2B #1A175C #28238D #362FBE #5B55D5

Accessibility & contrast

On white

12.24
#28238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28238D
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28238D#FFFFFF#000000##FFFFFF
##28238D1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28238d;
/* rgb */ color: rgb(40, 35, 141);
/* oklch */ color: oklch(34.5% 0.167 275.3);
Tailwind
colors: {
  custom: {
    50: '#725faf',
    500: '#28238d',
    950: '#000000',
  },
}
SCSS
$custom: #28238d;
$custom-light: #725faf;
$custom-dark: #000000;
JSON
{
  "hex": "#28238d",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 242.83,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34549,
    "c": 0.16686,
    "h": 275.3
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#28238D
secondary
#B4B953
accent
#E344DC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #28238D

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

Preview Lab → · Contrast checker → · Palette generator →

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