#30408D#30408D

#30408D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.129 H 270.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#30408D
RGBrgb(48, 64, 141)
HSLhsl(230, 49%, 37%)
HSVhsv(230, 66%, 55%)
CMYKcmyk(66%, 54.6%, 0%, 44.7%)
CIE-LABlab(29.95, 19.74, -44.82)
CIE-LCHlch(29.95, 48.97, 293.77°)
OKLaboklab(40.36% 0.0017 -0.1287)
OKLCHoklch(40.36% 0.129 270.7)
XYZxyz(7.8584, 6.2176, 25.9801)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30408D #8D7D30
analogous
#306F8D #30408D #4E308D
triadic
#30408D #8D3040 #408D30
tetradic
#30408D #8D306F #8D7D30 #308D4E
square
#30408D #8D306F #8D7D30 #308D4E
split-complementary
#30408D #8D4E30 #6F8D30
monochromatic
#111732 #202B5F #30408D #4055BB #6B7CCD

Accessibility & contrast

On white

9.36
#30408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#30408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30408D
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30408D#FFFFFF#000000##FFFFFF
##30408D1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4B90
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #30408d;
/* rgb */ color: rgb(48, 64, 141);
/* oklch */ color: oklch(40.4% 0.129 270.7);
Tailwind
colors: {
  custom: {
    50: '#7374af',
    500: '#30408d',
    950: '#000000',
  },
}
SCSS
$custom: #30408d;
$custom-light: #7374af;
$custom-dark: #000000;
JSON
{
  "hex": "#30408d",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 229.677,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40363,
    "c": 0.12867,
    "h": 270.7
  },
  "luminance": 0.06218
}

Semantic roles & 50–950 ramp

primary
#30408D
secondary
#B4A665
accent
#C14FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #30408D

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

Preview Lab → · Contrast checker → · Palette generator →

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