#30418D#30418D

#30418D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.127 H 270.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#30418D
RGBrgb(48, 65, 141)
HSLhsl(229, 49%, 37%)
HSVhsv(229, 66%, 55%)
CMYKcmyk(66%, 53.9%, 0%, 44.7%)
CIE-LABlab(30.23, 19.06, -44.37)
CIE-LCHlch(30.23, 48.29, 293.25°)
OKLaboklab(40.57% 0.0007 -0.1273)
OKLCHoklch(40.57% 0.127 270.3)
XYZxyz(7.9153, 6.3314, 25.9991)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30418D #8D7C30
analogous
#30708D #30418D #4E308D
triadic
#30418D #8D3041 #418D30
tetradic
#30418D #8D3070 #8D7C30 #308D4E
square
#30418D #8D3070 #8D7C30 #308D4E
split-complementary
#30418D #8D4E30 #708D30
monochromatic
#111732 #202C5F #30418D #4056BB #6B7DCD

Accessibility & contrast

On white

9.27
#30418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#30418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30418D
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30418D#FFFFFF#000000##FFFFFF
##30418D1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C90
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #30418d;
/* rgb */ color: rgb(48, 65, 141);
/* oklch */ color: oklch(40.6% 0.127 270.3);
Tailwind
colors: {
  custom: {
    50: '#7375af',
    500: '#30418d',
    950: '#000000',
  },
}
SCSS
$custom: #30418d;
$custom-light: #7375af;
$custom-dark: #000000;
JSON
{
  "hex": "#30418d",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 229.032,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40573,
    "c": 0.12732,
    "h": 270.3
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

primary
#30418D
secondary
#B4A565
accent
#C04FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #30418D

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

Preview Lab → · Contrast checker → · Palette generator →

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