#28229D#28229D

#28229D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.188 H 273.8°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#28229D
RGBrgb(40, 34, 157)
HSLhsl(243, 64%, 37%)
HSVhsv(243, 78%, 62%)
CMYKcmyk(74.5%, 78.3%, 0%, 38.4%)
CIE-LABlab(23.77, 43.35, -64.79)
CIE-LCHlch(23.77, 77.95, 303.79°)
OKLaboklab(36.16% 0.0124 -0.1874)
OKLCHoklch(36.16% 0.188 273.8)
XYZxyz(7.5309, 4.0287, 32.2725)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28229D #979D22
analogous
#22599D #28229D #66229D
triadic
#28229D #9D2822 #229D28
tetradic
#28229D #9D2259 #979D22 #229D66
square
#28229D #9D2259 #979D22 #229D66
split-complementary
#28229D #9D6622 #599D22
monochromatic
#0E0C38 #1B176B #28229D #352DCF #645DDC

Accessibility & contrast

On white

11.63
#28229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#28229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28229D
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28229D#FFFFFF#000000##FFFFFF
##28229D1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28229d;
/* rgb */ color: rgb(40, 34, 157);
/* oklch */ color: oklch(36.2% 0.188 273.8);
Tailwind
colors: {
  custom: {
    50: '#7660bb',
    500: '#28229d',
    950: '#000000',
  },
}
SCSS
$custom: #28229d;
$custom-light: #7660bb;
$custom-dark: #000000;
JSON
{
  "hex": "#28229d",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 242.927,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36162,
    "c": 0.18784,
    "h": 273.8
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#28229D
secondary
#BCC15A
accent
#E740DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28229D

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

Preview Lab → · Contrast checker → · Palette generator →

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