#30418F#30418F

#30418F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.7% C 0.130 H 270.4°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#30418F
RGBrgb(48, 65, 143)
HSLhsl(229, 50%, 37%)
HSVhsv(229, 66%, 56%)
CMYKcmyk(66.4%, 54.5%, 0%, 43.9%)
CIE-LABlab(30.38, 19.81, -45.36)
CIE-LCHlch(30.38, 49.50, 293.59°)
OKLaboklab(40.73% 0.0008 -0.1302)
OKLCHoklch(40.73% 0.13 270.4)
XYZxyz(8.0655, 6.3914, 26.7899)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30418F #8F7E30
analogous
#30718F #30418F #4E308F
triadic
#30418F #8F3041 #418F30
tetradic
#30418F #8F3071 #8F7E30 #308F4E
square
#30418F #8F3071 #8F7E30 #308F4E
split-complementary
#30418F #8F4E30 #718F30
monochromatic
#111733 #212C61 #30418F #3F56BD #6C7DCE

Accessibility & contrast

On white

9.22
#30418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#30418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30418F
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30418F#FFFFFF#000000##FFFFFF
##30418F1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4C92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #30418f;
/* rgb */ color: rgb(48, 65, 143);
/* oklch */ color: oklch(40.7% 0.130 270.4);
Tailwind
colors: {
  custom: {
    50: '#7375b0',
    500: '#30418f',
    950: '#000000',
  },
}
SCSS
$custom: #30418f;
$custom-light: #7375b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30418f",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 229.263,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4073,
    "c": 0.13025,
    "h": 270.4
  },
  "luminance": 0.06392
}

Semantic roles & 50–950 ramp

primary
#30418F
secondary
#B5A766
accent
#C04FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #30418F

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

Preview Lab → · Contrast checker → · Palette generator →

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