#28338A#28338A

#28338A is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.144 H 271.8°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#28338A
RGBrgb(40, 51, 138)
HSLhsl(233, 55%, 35%)
HSVhsv(233, 71%, 54%)
CMYKcmyk(71%, 63%, 0%, 45.9%)
CIE-LABlab(25.72, 26.14, -49.86)
CIE-LCHlch(25.72, 56.29, 297.67°)
OKLaboklab(37% 0.0045 -0.1438)
OKLCHoklch(37% 0.144 271.8)
XYZxyz(6.6448, 4.6531, 24.5878)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28338A #8A7F28
analogous
#28648A #28338A #4E288A
triadic
#28338A #8A2833 #338A28
tetradic
#28338A #8A2864 #8A7F28 #288A4E
square
#28338A #8A2864 #8A7F28 #288A4E
split-complementary
#28338A #8A4E28 #648A28
monochromatic
#0C102B #1A215B #28338A #3645B9 #5D69D0

Accessibility & contrast

On white

10.88
#28338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#28338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28338A
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28338A#FFFFFF#000000##FFFFFF
##28338A1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #28338a;
/* rgb */ color: rgb(40, 51, 138);
/* oklch */ color: oklch(37.0% 0.144 271.8);
Tailwind
colors: {
  custom: {
    50: '#706aad',
    500: '#28338a',
    950: '#000000',
  },
}
SCSS
$custom: #28338a;
$custom-light: #706aad;
$custom-dark: #000000;
JSON
{
  "hex": "#28338a",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 233.265,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37003,
    "c": 0.14391,
    "h": 271.8
  },
  "luminance": 0.04654
}

Semantic roles & 50–950 ramp

primary
#28338A
secondary
#B5AB59
accent
#CE49DE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #28338A

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

Preview Lab → · Contrast checker → · Palette generator →

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