#30478B#30478B

#30478B is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.7% C 0.116 H 267.2°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#30478B
RGBrgb(48, 71, 139)
HSLhsl(225, 49%, 37%)
HSVhsv(225, 65%, 55%)
CMYKcmyk(65.5%, 48.9%, 0%, 45.5%)
CIE-LABlab(31.80, 14.26, -40.61)
CIE-LCHlch(31.80, 43.04, 289.35°)
OKLaboklab(41.72% -0.0057 -0.1162)
OKLCHoklch(41.72% 0.116 267.2)
XYZxyz(8.1308, 6.9982, 25.3434)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30478B #8B7430
analogous
#30758B #30478B #47308B
triadic
#30478B #8B3047 #478B30
tetradic
#30478B #8B3075 #8B7430 #308B47
square
#30478B #8B3075 #8B7430 #308B47
split-complementary
#30478B #8B4730 #758B30
monochromatic
#111930 #20305E #30478B #405EB8 #6A83CC

Accessibility & contrast

On white

8.75
#30478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#30478B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30478B
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30478B#FFFFFF#000000##FFFFFF
##30478B1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8E
Deuteranopia (green-blind)
#12478A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #30478b;
/* rgb */ color: rgb(48, 71, 139);
/* oklch */ color: oklch(41.7% 0.116 267.2);
Tailwind
colors: {
  custom: {
    50: '#7279ad',
    500: '#30478b',
    950: '#000000',
  },
}
SCSS
$custom: #30478b;
$custom-light: #7279ad;
$custom-dark: #000000;
JSON
{
  "hex": "#30478b",
  "rgb": {
    "r": 48,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 224.835,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4172,
    "c": 0.11632,
    "h": 267.2
  },
  "luminance": 0.06999
}

Semantic roles & 50–950 ramp

primary
#30478B
secondary
#B39F64
accent
#B650D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #30478B

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

Preview Lab → · Contrast checker → · Palette generator →

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