#30417C#30417C

#30417C is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.3% C 0.102 H 269.2°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#30417C
RGBrgb(48, 65, 124)
HSLhsl(227, 44%, 34%)
HSVhsv(227, 61%, 49%)
CMYKcmyk(61.3%, 47.6%, 0%, 51.4%)
CIE-LABlab(29.07, 12.77, -35.69)
CIE-LCHlch(29.07, 37.90, 289.69°)
OKLaboklab(39.31% -0.0014 -0.1018)
OKLCHoklch(39.31% 0.102 269.2)
XYZxyz(6.7461, 5.8637, 19.8412)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30417C #7C6B30
analogous
#30677C #30417C #45307C
triadic
#30417C #7C3041 #417C30
tetradic
#30417C #7C3067 #7C6B30 #307C45
square
#30417C #7C3067 #7C6B30 #307C45
split-complementary
#30417C #7C4530 #677C30
monochromatic
#0E1324 #1F2A50 #30417C #4158A8 #6479C3

Accessibility & contrast

On white

9.66
#30417C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#30417C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30417C
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30417C#FFFFFF#000000##FFFFFF
##30417C1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25487E
Deuteranopia (green-blind)
#1A417B
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #30417c;
/* rgb */ color: rgb(48, 65, 124);
/* oklch */ color: oklch(39.3% 0.102 269.2);
Tailwind
colors: {
  custom: {
    50: '#7075a2',
    500: '#30417c',
    950: '#000000',
  },
}
SCSS
$custom: #30417c;
$custom-light: #7075a2;
$custom-dark: #000000;
JSON
{
  "hex": "#30417c",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 226.579,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39313,
    "c": 0.10181,
    "h": 269.2
  },
  "luminance": 0.05864
}

Semantic roles & 50–950 ramp

primary
#30417C
secondary
#AA995E
accent
#B754D4
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #30417C

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

Preview Lab → · Contrast checker → · Palette generator →

#30417C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva