#28338F#28338F

#28338F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.151 H 271.6°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#28338F
RGBrgb(40, 51, 143)
HSLhsl(234, 56%, 36%)
HSVhsv(234, 72%, 56%)
CMYKcmyk(72%, 64.3%, 0%, 43.9%)
CIE-LABlab(26.16, 28.01, -52.24)
CIE-LCHlch(26.16, 59.27, 298.20°)
OKLaboklab(37.46% 0.0043 -0.1508)
OKLCHoklch(37.46% 0.151 271.6)
XYZxyz(7.0151, 4.8012, 26.5383)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28338F #8F8428
analogous
#28668F #28338F #50288F
triadic
#28338F #8F2833 #338F28
tetradic
#28338F #8F2866 #8F8428 #288F50
square
#28338F #8F2866 #8F8428 #288F50
split-complementary
#28338F #8F5028 #668F28
monochromatic
#0D112F #1B225F #28338F #3544BF #5F6BD2

Accessibility & contrast

On white

10.71
#28338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#28338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28338F
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28338F#FFFFFF#000000##FFFFFF
##28338F1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #28338f;
/* rgb */ color: rgb(40, 51, 143);
/* oklch */ color: oklch(37.5% 0.151 271.6);
Tailwind
colors: {
  custom: {
    50: '#716ab1',
    500: '#28338f',
    950: '#000000',
  },
}
SCSS
$custom: #28338f;
$custom-light: #716ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#28338f",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 233.592,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37462,
    "c": 0.15089,
    "h": 271.6
  },
  "luminance": 0.04802
}

Semantic roles & 50–950 ramp

primary
#28338F
secondary
#B8AE5B
accent
#CF48E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #28338F

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

Preview Lab → · Contrast checker → · Palette generator →

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