#28238F#28238F

#28238F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.169 H 275.0°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#28238F
RGBrgb(40, 35, 143)
HSLhsl(243, 61%, 35%)
HSVhsv(243, 76%, 56%)
CMYKcmyk(72%, 75.5%, 0%, 43.9%)
CIE-LABlab(22.43, 38.12, -58.37)
CIE-LCHlch(22.43, 69.71, 303.15°)
OKLaboklab(34.76% 0.0149 -0.1688)
OKLCHoklch(34.76% 0.169 275)
XYZxyz(6.4324, 3.6357, 26.3441)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28238F #8A8F23
analogous
#23548F #28238F #5E238F
triadic
#28238F #8F2823 #238F28
tetradic
#28238F #8F2354 #8A8F23 #238F5E
square
#28238F #8F2354 #8A8F23 #238F5E
split-complementary
#28238F #8F5E23 #548F23
monochromatic
#0C0B2D #1A175E #28238F #362FC0 #5D57D6

Accessibility & contrast

On white

12.16
#28238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#28238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28238F
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28238F#FFFFFF#000000##FFFFFF
##28238F1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #28238f;
/* rgb */ color: rgb(40, 35, 143);
/* oklch */ color: oklch(34.8% 0.169 275.0);
Tailwind
colors: {
  custom: {
    50: '#725fb1',
    500: '#28238f',
    950: '#000000',
  },
}
SCSS
$custom: #28238f;
$custom-light: #725fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#28238f",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 242.778,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34763,
    "c": 0.16942,
    "h": 275
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28238F

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

Preview Lab → · Contrast checker → · Palette generator →

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