#30288B#30288B

#30288B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.157 H 278.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#30288B
RGBrgb(48, 40, 139)
HSLhsl(245, 55%, 35%)
HSVhsv(245, 71%, 55%)
CMYKcmyk(65.5%, 71.2%, 0%, 45.5%)
CIE-LABlab(23.70, 34.76, -53.76)
CIE-LCHlch(23.70, 64.02, 302.88°)
OKLaboklab(35.71% 0.0232 -0.1551)
OKLCHoklch(35.71% 0.157 278.5)
XYZxyz(6.6364, 4.0095, 24.8453)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30288B #838B28
analogous
#28528B #30288B #61288B
triadic
#30288B #8B3028 #288B30
tetradic
#30288B #8B2852 #838B28 #288B61
square
#30288B #8B2852 #838B28 #288B61
split-complementary
#30288B #8B6128 #528B28
monochromatic
#0F0D2C #201A5B #30288B #4036BB #665DD0

Accessibility & contrast

On white

11.65
#30288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#30288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30288B
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30288B#FFFFFF#000000##FFFFFF
##30288B1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #30288b;
/* rgb */ color: rgb(48, 40, 139);
/* oklch */ color: oklch(35.7% 0.157 278.5);
Tailwind
colors: {
  custom: {
    50: '#7463ae',
    500: '#30288b',
    950: '#000000',
  },
}
SCSS
$custom: #30288b;
$custom-light: #7463ae;
$custom-dark: #000000;
JSON
{
  "hex": "#30288b",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 244.848,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35706,
    "c": 0.15683,
    "h": 278.5
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#30288B
secondary
#AEB659
accent
#DF49D3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #30288B

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

Preview Lab → · Contrast checker → · Palette generator →

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