#28338E#28338E

#28338E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.4% C 0.149 H 271.7°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#28338E
RGBrgb(40, 51, 142)
HSLhsl(234, 56%, 36%)
HSVhsv(234, 72%, 56%)
CMYKcmyk(71.8%, 64.1%, 0%, 44.3%)
CIE-LABlab(26.07, 27.63, -51.77)
CIE-LCHlch(26.07, 58.68, 298.09°)
OKLaboklab(37.37% 0.0044 -0.1494)
OKLCHoklch(37.37% 0.15 271.7)
XYZxyz(6.9397, 4.7711, 26.1411)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28338E #8E8328
analogous
#28668E #28338E #50288E
triadic
#28338E #8E2833 #338E28
tetradic
#28338E #8E2866 #8E8328 #288E50
square
#28338E #8E2866 #8E8328 #288E50
split-complementary
#28338E #8E5028 #668E28
monochromatic
#0D112F #1B225E #28338E #3544BE #5F6BD2

Accessibility & contrast

On white

10.74
#28338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#28338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28338E
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28338E#FFFFFF#000000##FFFFFF
##28338E1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #28338e;
/* rgb */ color: rgb(40, 51, 142);
/* oklch */ color: oklch(37.4% 0.149 271.7);
Tailwind
colors: {
  custom: {
    50: '#716ab0',
    500: '#28338e',
    950: '#000000',
  },
}
SCSS
$custom: #28338e;
$custom-light: #716ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#28338e",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 233.529,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37369,
    "c": 0.1495,
    "h": 271.7
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#28338E
secondary
#B7AD5B
accent
#CF48DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #28338E

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

Preview Lab → · Contrast checker → · Palette generator →

#28338E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva