#28229F#28229F

#28229F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.190 H 273.6°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#28229F
RGBrgb(40, 34, 159)
HSLhsl(243, 65%, 38%)
HSVhsv(243, 79%, 62%)
CMYKcmyk(74.8%, 78.6%, 0%, 37.6%)
CIE-LABlab(23.99, 44.00, -65.63)
CIE-LCHlch(23.99, 79.02, 303.84°)
OKLaboklab(36.39% 0.0119 -0.1899)
OKLCHoklch(36.39% 0.19 273.6)
XYZxyz(7.7030, 4.0976, 33.1791)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28229F #999F22
analogous
#225A9F #28229F #66229F
triadic
#28229F #9F2822 #229F28
tetradic
#28229F #9F225A #999F22 #229F66
square
#28229F #9F225A #999F22 #229F66
split-complementary
#28229F #9F6622 #5A9F22
monochromatic
#0F0C3A #1B176D #28229F #352DD1 #655FDD

Accessibility & contrast

On white

11.54
#28229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#28229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28229F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28229F#FFFFFF#000000##FFFFFF
##28229F1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28229f;
/* rgb */ color: rgb(40, 34, 159);
/* oklch */ color: oklch(36.4% 0.190 273.6);
Tailwind
colors: {
  custom: {
    50: '#7660bd',
    500: '#28229f',
    950: '#000000',
  },
}
SCSS
$custom: #28229f;
$custom-light: #7660bd;
$custom-dark: #000000;
JSON
{
  "hex": "#28229f",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 242.88,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36386,
    "c": 0.19026,
    "h": 273.6
  },
  "luminance": 0.04098
}

Semantic roles & 50–950 ramp

primary
#28229F
secondary
#BDC15B
accent
#E840E0
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28229F

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

Preview Lab → · Contrast checker → · Palette generator →

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