#30418B#30418B

#30418B is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.4% C 0.124 H 270.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#30418B
RGBrgb(48, 65, 139)
HSLhsl(229, 49%, 37%)
HSVhsv(229, 65%, 55%)
CMYKcmyk(65.5%, 53.2%, 0%, 45.5%)
CIE-LABlab(30.09, 18.32, -43.37)
CIE-LCHlch(30.09, 47.08, 292.90°)
OKLaboklab(40.42% 0.0005 -0.1244)
OKLCHoklch(40.42% 0.124 270.2)
XYZxyz(7.7678, 6.2724, 25.2224)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30418B #8B7A30
analogous
#306F8B #30418B #4D308B
triadic
#30418B #8B3041 #418B30
tetradic
#30418B #8B306F #8B7A30 #308B4D
square
#30418B #8B306F #8B7A30 #308B4D
split-complementary
#30418B #8B4D30 #6F8B30
monochromatic
#111630 #202C5E #30418B #4056B8 #6A7CCC

Accessibility & contrast

On white

9.31
#30418B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#30418B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30418B
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30418B#FFFFFF#000000##FFFFFF
##30418B1.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154B8E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #30418b;
/* rgb */ color: rgb(48, 65, 139);
/* oklch */ color: oklch(40.4% 0.124 270.2);
Tailwind
colors: {
  custom: {
    50: '#7275ad',
    500: '#30418b',
    950: '#000000',
  },
}
SCSS
$custom: #30418b;
$custom-light: #7275ad;
$custom-dark: #000000;
JSON
{
  "hex": "#30418b",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 228.791,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40419,
    "c": 0.12438,
    "h": 270.2
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#30418B
secondary
#B3A464
accent
#BF50D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #30418B

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

Preview Lab → · Contrast checker → · Palette generator →

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