#28368F#28368F

#28368F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.147 H 270.8°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#28368F
RGBrgb(40, 54, 143)
HSLhsl(232, 56%, 36%)
HSVhsv(232, 72%, 56%)
CMYKcmyk(72%, 62.2%, 0%, 43.9%)
CIE-LABlab(26.94, 25.99, -50.97)
CIE-LCHlch(26.94, 57.21, 297.02°)
OKLaboklab(38.04% 0.002 -0.1471)
OKLCHoklch(38.04% 0.147 270.8)
XYZxyz(7.1505, 5.0719, 26.5834)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28368F #8F8128
analogous
#28698F #28368F #4D288F
triadic
#28368F #8F2836 #368F28
tetradic
#28368F #8F2869 #8F8128 #288F4D
square
#28368F #8F2869 #8F8128 #288F4D
split-complementary
#28368F #8F4D28 #698F28
monochromatic
#0D122F #1B245F #28368F #3548BF #5F6FD2

Accessibility & contrast

On white

10.42
#28368F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#28368F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28368F
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28368F#FFFFFF#000000##FFFFFF
##28368F1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004C5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28368f;
/* rgb */ color: rgb(40, 54, 143);
/* oklch */ color: oklch(38.0% 0.147 270.8);
Tailwind
colors: {
  custom: {
    50: '#716db1',
    500: '#28368f',
    950: '#000000',
  },
}
SCSS
$custom: #28368f;
$custom-light: #716db1;
$custom-dark: #000000;
JSON
{
  "hex": "#28368f",
  "rgb": {
    "r": 40,
    "g": 54,
    "b": 143
  },
  "hsl": {
    "h": 231.845,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38036,
    "c": 0.14708,
    "h": 270.8
  },
  "luminance": 0.05073
}

Semantic roles & 50–950 ramp

primary
#28368F
secondary
#B8AB5B
accent
#CB48E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #28368F

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

Preview Lab → · Contrast checker → · Palette generator →

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