#30288D#30288D

#30288D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.159 H 278.2°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#30288D
RGBrgb(48, 40, 141)
HSLhsl(245, 56%, 35%)
HSVhsv(245, 72%, 55%)
CMYKcmyk(66%, 71.6%, 0%, 44.7%)
CIE-LABlab(23.90, 35.44, -54.69)
CIE-LCHlch(23.90, 65.17, 302.94°)
OKLaboklab(35.9% 0.0228 -0.1578)
OKLCHoklch(35.9% 0.159 278.2)
XYZxyz(6.7839, 4.0685, 25.6219)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30288D #858D28
analogous
#28538D #30288D #62288D
triadic
#30288D #8D3028 #288D30
tetradic
#30288D #8D2853 #858D28 #288D62
square
#30288D #8D2853 #858D28 #288D62
split-complementary
#30288D #8D6228 #538D28
monochromatic
#100D2E #201A5D #30288D #4036BD #675ED1

Accessibility & contrast

On white

11.58
#30288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#30288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30288D
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30288D#FFFFFF#000000##FFFFFF
##30288D1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #30288d;
/* rgb */ color: rgb(48, 40, 141);
/* oklch */ color: oklch(35.9% 0.159 278.2);
Tailwind
colors: {
  custom: {
    50: '#7563af',
    500: '#30288d',
    950: '#000000',
  },
}
SCSS
$custom: #30288d;
$custom-light: #7563af;
$custom-dark: #000000;
JSON
{
  "hex": "#30288d",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 244.752,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35904,
    "c": 0.15946,
    "h": 278.2
  },
  "luminance": 0.04069
}

Semantic roles & 50–950 ramp

primary
#30288D
secondary
#AFB75A
accent
#DF49D3
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #30288D

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

Preview Lab → · Contrast checker → · Palette generator →

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