#28338B#28338B

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

Color values

HEX#28338B
RGBrgb(40, 51, 139)
HSLhsl(233, 55%, 35%)
HSVhsv(233, 71%, 55%)
CMYKcmyk(71.2%, 63.3%, 0%, 45.5%)
CIE-LABlab(25.81, 26.51, -50.34)
CIE-LCHlch(25.81, 56.89, 297.78°)
OKLaboklab(37.09% 0.0045 -0.1452)
OKLCHoklch(37.09% 0.145 271.8)
XYZxyz(6.7175, 4.6822, 24.9708)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28338B #8B8028
analogous
#28658B #28338B #4E288B
triadic
#28338B #8B2833 #338B28
tetradic
#28338B #8B2865 #8B8028 #288B4E
square
#28338B #8B2865 #8B8028 #288B4E
split-complementary
#28338B #8B4E28 #658B28
monochromatic
#0D102C #1A225B #28338B #3644BB #5D6AD0

Accessibility & contrast

On white

10.84
#28338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#28338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28338B
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28338B#FFFFFF#000000##FFFFFF
##28338B1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #28338b;
/* rgb */ color: rgb(40, 51, 139);
/* oklch */ color: oklch(37.1% 0.145 271.8);
Tailwind
colors: {
  custom: {
    50: '#706aae',
    500: '#28338b',
    950: '#000000',
  },
}
SCSS
$custom: #28338b;
$custom-light: #706aae;
$custom-dark: #000000;
JSON
{
  "hex": "#28338b",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 233.333,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37094,
    "c": 0.14531,
    "h": 271.8
  },
  "luminance": 0.04683
}

Semantic roles & 50–950 ramp

primary
#28338B
secondary
#B6AB59
accent
#CE49DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #28338B

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

Preview Lab → · Contrast checker → · Palette generator →

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