#28229C#28229C

#28229C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.187 H 273.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#28229C
RGBrgb(40, 34, 156)
HSLhsl(243, 64%, 37%)
HSVhsv(243, 78%, 61%)
CMYKcmyk(74.4%, 78.2%, 0%, 38.8%)
CIE-LABlab(23.65, 43.02, -64.36)
CIE-LCHlch(23.65, 77.41, 303.76°)
OKLaboklab(36.05% 0.0126 -0.1862)
OKLCHoklch(36.05% 0.187 273.9)
XYZxyz(7.4459, 3.9947, 31.8247)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28229C #969C22
analogous
#22599C #28229C #65229C
triadic
#28229C #9C2822 #229C28
tetradic
#28229C #9C2259 #969C22 #229C65
square
#28229C #9C2259 #969C22 #229C65
split-complementary
#28229C #9C6522 #599C22
monochromatic
#0E0C38 #1B176A #28229C #352DCE #635DDC

Accessibility & contrast

On white

11.67
#28229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#28229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28229C
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28229C#FFFFFF#000000##FFFFFF
##28229C1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28229c;
/* rgb */ color: rgb(40, 34, 156);
/* oklch */ color: oklch(36.0% 0.187 273.9);
Tailwind
colors: {
  custom: {
    50: '#7660ba',
    500: '#28229c',
    950: '#000000',
  },
}
SCSS
$custom: #28229c;
$custom-light: #7660ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28229c",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 242.951,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3605,
    "c": 0.18662,
    "h": 273.9
  },
  "luminance": 0.03995
}

Semantic roles & 50–950 ramp

primary
#28229C
secondary
#BBC05A
accent
#E741DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28229C

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

Preview Lab → · Contrast checker → · Palette generator →

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