#30287D#30287D

#30287D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.138 H 280.5°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#30287D
RGBrgb(48, 40, 125)
HSLhsl(246, 52%, 32%)
HSVhsv(246, 68%, 49%)
CMYKcmyk(61.6%, 68%, 0%, 51%)
CIE-LABlab(22.40, 29.97, -47.11)
CIE-LCHlch(22.40, 55.83, 302.46°)
OKLaboklab(34.36% 0.0252 -0.1356)
OKLCHoklch(34.36% 0.138 280.5)
XYZxyz(5.6782, 3.6262, 19.7988)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30287D #757D28
analogous
#284B7D #30287D #5B287D
triadic
#30287D #7D3028 #287D30
tetradic
#30287D #7D284B #757D28 #287D5B
square
#30287D #7D284B #757D28 #287D5B
split-complementary
#30287D #7D5B28 #4B7D28
monochromatic
#0C0A20 #1E194F #30287D #4237AB #6156C9

Accessibility & contrast

On white

12.17
#30287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#30287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30287D
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30287D#FFFFFF#000000##FFFFFF
##30287D1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30287d;
/* rgb */ color: rgb(48, 40, 125);
/* oklch */ color: oklch(34.4% 0.138 280.5);
Tailwind
colors: {
  custom: {
    50: '#7262a3',
    500: '#30287d',
    950: '#000000',
  },
}
SCSS
$custom: #30287d;
$custom-light: #7262a3;
$custom-dark: #000000;
JSON
{
  "hex": "#30287d",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 245.647,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34361,
    "c": 0.13793,
    "h": 280.5
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#30287D
secondary
#A5AE53
accent
#DB4DCE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #30287D

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

Preview Lab → · Contrast checker → · Palette generator →

#30287D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva