#30518B#30518B

#30518B is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.0% C 0.103 H 260.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#30518B
RGBrgb(48, 81, 139)
HSLhsl(218, 49%, 37%)
HSVhsv(218, 65%, 55%)
CMYKcmyk(65.5%, 41.7%, 0%, 45.5%)
CIE-LABlab(34.76, 7.59, -35.89)
CIE-LCHlch(34.76, 36.68, 281.95°)
OKLaboklab(43.99% -0.0164 -0.1022)
OKLCHoklch(43.99% 0.103 260.9)
XYZxyz(8.8199, 8.3765, 25.5731)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30518B #8B6A30
analogous
#307F8B #30518B #3D308B
triadic
#30518B #8B3051 #518B30
tetradic
#30518B #8B307F #8B6A30 #308B3D
square
#30518B #8B307F #8B6A30 #308B3D
split-complementary
#30518B #8B3D30 #7F8B30
monochromatic
#111C30 #20365E #30518B #406CB8 #6A8DCC

Accessibility & contrast

On white

7.85
#30518B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#30518B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30518B
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30518B#FFFFFF#000000##FFFFFF
##30518B1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568D
Deuteranopia (green-blind)
#2A4E8A
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #30518b;
/* rgb */ color: rgb(48, 81, 139);
/* oklch */ color: oklch(44.0% 0.103 260.9);
Tailwind
colors: {
  custom: {
    50: '#7281ad',
    500: '#30518b',
    950: '#000000',
  },
}
SCSS
$custom: #30518b;
$custom-light: #7281ad;
$custom-dark: #000000;
JSON
{
  "hex": "#30518b",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 139
  },
  "hsl": {
    "h": 218.242,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43989,
    "c": 0.10349,
    "h": 260.9
  },
  "luminance": 0.08377
}

Semantic roles & 50–950 ramp

primary
#30518B
secondary
#B39664
accent
#A750D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #30518B

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

Preview Lab → · Contrast checker → · Palette generator →

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