#30408F#30408F

#30408F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.132 H 270.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#30408F
RGBrgb(48, 64, 143)
HSLhsl(230, 50%, 37%)
HSVhsv(230, 66%, 56%)
CMYKcmyk(66.4%, 55.2%, 0%, 43.9%)
CIE-LABlab(30.10, 20.48, -45.81)
CIE-LCHlch(30.10, 50.18, 294.09°)
OKLaboklab(40.52% 0.0018 -0.1316)
OKLCHoklch(40.52% 0.132 270.8)
XYZxyz(8.0086, 6.2776, 26.7709)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30408F #8F7F30
analogous
#306F8F #30408F #50308F
triadic
#30408F #8F3040 #408F30
tetradic
#30408F #8F306F #8F7F30 #308F50
square
#30408F #8F306F #8F7F30 #308F50
split-complementary
#30408F #8F5030 #6F8F30
monochromatic
#111733 #212B61 #30408F #3F55BD #6C7CCE

Accessibility & contrast

On white

9.31
#30408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#30408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30408F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30408F#FFFFFF#000000##FFFFFF
##30408F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074B92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #30408f;
/* rgb */ color: rgb(48, 64, 143);
/* oklch */ color: oklch(40.5% 0.132 270.8);
Tailwind
colors: {
  custom: {
    50: '#7374b0',
    500: '#30408f',
    950: '#000000',
  },
}
SCSS
$custom: #30408f;
$custom-light: #7374b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30408f",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 229.895,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40521,
    "c": 0.13159,
    "h": 270.8
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#30408F
secondary
#B5A866
accent
#C24FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #30408F

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

Preview Lab → · Contrast checker → · Palette generator →

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