#30518F#30518F

#30518F is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.3% C 0.109 H 261.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#30518F
RGBrgb(48, 81, 143)
HSLhsl(219, 50%, 37%)
HSVhsv(219, 66%, 56%)
CMYKcmyk(66.4%, 43.4%, 0%, 43.9%)
CIE-LABlab(34.99, 9.08, -37.95)
CIE-LCHlch(34.99, 39.02, 283.46°)
OKLaboklab(44.25% -0.0155 -0.1082)
OKLCHoklch(44.25% 0.109 261.8)
XYZxyz(9.1175, 8.4955, 27.1406)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30518F #8F6E30
analogous
#30808F #30518F #3F308F
triadic
#30518F #8F3051 #518F30
tetradic
#30518F #8F3080 #8F6E30 #308F3F
square
#30518F #8F3080 #8F6E30 #308F3F
split-complementary
#30518F #8F3F30 #808F30
monochromatic
#111D33 #213761 #30518F #3F6BBD #6C8ECE

Accessibility & contrast

On white

7.78
#30518F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#30518F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30518F
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30518F#FFFFFF#000000##FFFFFF
##30518F1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345791
Deuteranopia (green-blind)
#264E8E
Tritanopia (blue-blind)
#005F69
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #30518f;
/* rgb */ color: rgb(48, 81, 143);
/* oklch */ color: oklch(44.3% 0.109 261.8);
Tailwind
colors: {
  custom: {
    50: '#7381b0',
    500: '#30518f',
    950: '#000000',
  },
}
SCSS
$custom: #30518f;
$custom-light: #7381b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30518f",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 143
  },
  "hsl": {
    "h": 219.158,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44251,
    "c": 0.10933,
    "h": 261.8
  },
  "luminance": 0.08496
}

Semantic roles & 50–950 ramp

primary
#30518F
secondary
#B59966
accent
#A94FD9
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #30518F

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

Preview Lab → · Contrast checker → · Palette generator →

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