#28229B#28229B

#28229B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.185 H 274.0°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#28229B
RGBrgb(40, 34, 155)
HSLhsl(243, 64%, 37%)
HSVhsv(243, 78%, 61%)
CMYKcmyk(74.2%, 78.1%, 0%, 39.2%)
CIE-LABlab(23.54, 42.69, -63.93)
CIE-LCHlch(23.54, 76.88, 303.73°)
OKLaboklab(35.94% 0.0128 -0.1849)
OKLCHoklch(35.94% 0.185 274)
XYZxyz(7.3615, 3.9610, 31.3806)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28229B #959B22
analogous
#22599B #28229B #65229B
triadic
#28229B #9B2822 #229B28
tetradic
#28229B #9B2259 #959B22 #229B65
square
#28229B #9B2259 #959B22 #229B65
split-complementary
#28229B #9B6522 #599B22
monochromatic
#0E0C37 #1B1769 #28229B #352DCD #625CDB

Accessibility & contrast

On white

11.72
#28229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#28229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28229B
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28229B#FFFFFF#000000##FFFFFF
##28229B1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #28229b;
/* rgb */ color: rgb(40, 34, 155);
/* oklch */ color: oklch(35.9% 0.185 274.0);
Tailwind
colors: {
  custom: {
    50: '#7560ba',
    500: '#28229b',
    950: '#000000',
  },
}
SCSS
$custom: #28229b;
$custom-light: #7560ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28229b",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 242.975,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35939,
    "c": 0.18538,
    "h": 274
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28229B

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

Preview Lab → · Contrast checker → · Palette generator →

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