#28318F#28318F

#28318F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.153 H 272.2°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#28318F
RGBrgb(40, 49, 143)
HSLhsl(235, 56%, 36%)
HSVhsv(235, 72%, 56%)
CMYKcmyk(72%, 65.7%, 0%, 43.9%)
CIE-LABlab(25.65, 29.33, -53.07)
CIE-LCHlch(25.65, 60.64, 298.93°)
OKLaboklab(37.09% 0.0058 -0.1533)
OKLCHoklch(37.09% 0.153 272.2)
XYZxyz(6.9296, 4.6302, 26.5098)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28318F #8F8628
analogous
#28648F #28318F #52288F
triadic
#28318F #8F2831 #318F28
tetradic
#28318F #8F2864 #8F8628 #288F52
square
#28318F #8F2864 #8F8628 #288F52
split-complementary
#28318F #8F5228 #648F28
monochromatic
#0D102F #1B215F #28318F #3541BF #5F69D2

Accessibility & contrast

On white

10.90
#28318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#28318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28318F
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28318F#FFFFFF#000000##FFFFFF
##28318F1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #28318f;
/* rgb */ color: rgb(40, 49, 143);
/* oklch */ color: oklch(37.1% 0.153 272.2);
Tailwind
colors: {
  custom: {
    50: '#7169b1',
    500: '#28318f',
    950: '#000000',
  },
}
SCSS
$custom: #28318f;
$custom-light: #7169b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28318f",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 234.757,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3709,
    "c": 0.15338,
    "h": 272.2
  },
  "luminance": 0.04631
}

Semantic roles & 50–950 ramp

primary
#28318F
secondary
#B8B05B
accent
#D248E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #28318F

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

Preview Lab → · Contrast checker → · Palette generator →

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