#28339C#28339C

#28339C is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.169 H 271.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#28339C
RGBrgb(40, 51, 156)
HSLhsl(234, 59%, 38%)
HSVhsv(234, 74%, 61%)
CMYKcmyk(74.4%, 67.3%, 0%, 38.8%)
CIE-LABlab(27.35, 32.80, -58.27)
CIE-LCHlch(27.35, 66.87, 299.38°)
OKLaboklab(38.7% 0.0035 -0.1685)
OKLCHoklch(38.7% 0.169 271.2)
XYZxyz(8.0576, 5.2182, 32.0286)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28339C #9C9128
analogous
#286D9C #28339C #57289C
triadic
#28339C #9C2833 #339C28
tetradic
#28339C #9C286D #9C9128 #289C57
square
#28339C #9C286D #9C9128 #289C57
split-complementary
#28339C #9C5728 #6D9C28
monochromatic
#0F133B #1C236B #28339C #3644CB #6771D8

Accessibility & contrast

On white

10.27
#28339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#28339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28339C
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28339C#FFFFFF#000000##FFFFFF
##28339C1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #28339c;
/* rgb */ color: rgb(40, 51, 156);
/* oklch */ color: oklch(38.7% 0.169 271.2);
Tailwind
colors: {
  custom: {
    50: '#746bba',
    500: '#28339c',
    950: '#000000',
  },
}
SCSS
$custom: #28339c;
$custom-light: #746bba;
$custom-dark: #000000;
JSON
{
  "hex": "#28339c",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 234.31,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38696,
    "c": 0.16854,
    "h": 271.2
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#28339C
secondary
#BEB562
accent
#D345E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #28339C

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

Preview Lab → · Contrast checker → · Palette generator →

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