#30407B#30407B

#30407B is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.0% C 0.102 H 269.8°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#30407B
RGBrgb(48, 64, 123)
HSLhsl(227, 44%, 34%)
HSVhsv(227, 61%, 48%)
CMYKcmyk(61%, 48%, 0%, 51.8%)
CIE-LABlab(28.71, 13.08, -35.64)
CIE-LCHlch(28.71, 37.96, 290.16°)
OKLaboklab(39.02% -0.0004 -0.1017)
OKLCHoklch(39.02% 0.102 269.8)
XYZxyz(6.6263, 5.7247, 19.4908)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30407B #7B6B30
analogous
#30657B #30407B #45307B
triadic
#30407B #7B3040 #407B30
tetradic
#30407B #7B3065 #7B6B30 #307B45
square
#30407B #7B3065 #7B6B30 #307B45
split-complementary
#30407B #7B4530 #657B30
monochromatic
#0E1223 #1F294F #30407B #4157A7 #6377C2

Accessibility & contrast

On white

9.79
#30407B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#30407B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30407B
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30407B#FFFFFF#000000##FFFFFF
##30407B1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477D
Deuteranopia (green-blind)
#19417A
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #30407b;
/* rgb */ color: rgb(48, 64, 123);
/* oklch */ color: oklch(39.0% 0.102 269.8);
Tailwind
colors: {
  custom: {
    50: '#6f74a1',
    500: '#30407b',
    950: '#000000',
  },
}
SCSS
$custom: #30407b;
$custom-light: #6f74a1;
$custom-dark: #000000;
JSON
{
  "hex": "#30407b",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 227.2,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39018,
    "c": 0.10166,
    "h": 269.8
  },
  "luminance": 0.05725
}

Semantic roles & 50–950 ramp

primary
#30407B
secondary
#A9995D
accent
#B854D4
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #30407B

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

Preview Lab → · Contrast checker → · Palette generator →

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