#30288C#30288C

#30288C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.158 H 278.4°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#30288C
RGBrgb(48, 40, 140)
HSLhsl(245, 56%, 35%)
HSVhsv(245, 71%, 55%)
CMYKcmyk(65.7%, 71.4%, 0%, 45.1%)
CIE-LABlab(23.80, 35.10, -54.23)
CIE-LCHlch(23.80, 64.59, 302.91°)
OKLaboklab(35.81% 0.023 -0.1565)
OKLCHoklch(35.81% 0.158 278.4)
XYZxyz(6.7098, 4.0389, 25.2318)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30288C #848C28
analogous
#28528C #30288C #62288C
triadic
#30288C #8C3028 #288C30
tetradic
#30288C #8C2852 #848C28 #288C62
square
#30288C #8C2852 #848C28 #288C62
split-complementary
#30288C #8C6228 #528C28
monochromatic
#0F0D2D #201A5C #30288C #4036BC #675ED1

Accessibility & contrast

On white

11.62
#30288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30288C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30288C#FFFFFF#000000##FFFFFF
##30288C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30288c;
/* rgb */ color: rgb(48, 40, 140);
/* oklch */ color: oklch(35.8% 0.158 278.4);
Tailwind
colors: {
  custom: {
    50: '#7563af',
    500: '#30288c',
    950: '#000000',
  },
}
SCSS
$custom: #30288c;
$custom-light: #7563af;
$custom-dark: #000000;
JSON
{
  "hex": "#30288c",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 244.8,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35805,
    "c": 0.15815,
    "h": 278.4
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30288C

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

Preview Lab → · Contrast checker → · Palette generator →

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