#28338C#28338C

#28338C is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.147 H 271.7°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#28338C
RGBrgb(40, 51, 140)
HSLhsl(233, 56%, 35%)
HSVhsv(233, 71%, 55%)
CMYKcmyk(71.4%, 63.6%, 0%, 45.1%)
CIE-LABlab(25.90, 26.89, -50.81)
CIE-LCHlch(25.90, 57.49, 297.88°)
OKLaboklab(37.19% 0.0045 -0.1466)
OKLCHoklch(37.19% 0.147 271.7)
XYZxyz(6.7909, 4.7116, 25.3574)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28338C #8C8128
analogous
#28658C #28338C #4F288C
triadic
#28338C #8C2833 #338C28
tetradic
#28338C #8C2865 #8C8128 #288C4F
square
#28338C #8C2865 #8C8128 #288C4F
split-complementary
#28338C #8C4F28 #658C28
monochromatic
#0D102D #1A225C #28338C #3644BC #5E6AD1

Accessibility & contrast

On white

10.81
#28338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28338C
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28338C#FFFFFF#000000##FFFFFF
##28338C1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #28338c;
/* rgb */ color: rgb(40, 51, 140);
/* oklch */ color: oklch(37.2% 0.147 271.7);
Tailwind
colors: {
  custom: {
    50: '#706aae',
    500: '#28338c',
    950: '#000000',
  },
}
SCSS
$custom: #28338c;
$custom-light: #706aae;
$custom-dark: #000000;
JSON
{
  "hex": "#28338c",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 233.4,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37185,
    "c": 0.14672,
    "h": 271.7
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28338C

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

Preview Lab → · Contrast checker → · Palette generator →

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