#30407E#30407E

#30407E is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.106 H 270.0°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#30407E
RGBrgb(48, 64, 126)
HSLhsl(228, 45%, 34%)
HSVhsv(228, 62%, 49%)
CMYKcmyk(61.9%, 49.2%, 0%, 50.6%)
CIE-LABlab(28.90, 14.19, -37.20)
CIE-LCHlch(28.90, 39.81, 290.87°)
OKLaboklab(39.23% 0.0001 -0.1062)
OKLCHoklch(39.23% 0.106 270)
XYZxyz(6.8170, 5.8010, 20.4951)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30407E #7E6E30
analogous
#30677E #30407E #47307E
triadic
#30407E #7E3040 #407E30
tetradic
#30407E #7E3067 #7E6E30 #307E47
square
#30407E #7E3067 #7E6E30 #307E47
split-complementary
#30407E #7E4730 #677E30
monochromatic
#0E1325 #1F2952 #30407E #4157AA #6478C4

Accessibility & contrast

On white

9.72
#30407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#30407E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30407E
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30407E#FFFFFF#000000##FFFFFF
##30407E1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224880
Deuteranopia (green-blind)
#15417D
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #30407e;
/* rgb */ color: rgb(48, 64, 126);
/* oklch */ color: oklch(39.2% 0.106 270.0);
Tailwind
colors: {
  custom: {
    50: '#7074a4',
    500: '#30407e',
    950: '#000000',
  },
}
SCSS
$custom: #30407e;
$custom-light: #7074a4;
$custom-dark: #000000;
JSON
{
  "hex": "#30407e",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 227.692,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39232,
    "c": 0.10625,
    "h": 270
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#30407E
secondary
#AB9B5F
accent
#BA53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #30407E

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

Preview Lab → · Contrast checker → · Palette generator →

#30407E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva