#30408C#30408C

#30408C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.127 H 270.7°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#30408C
RGBrgb(48, 64, 140)
HSLhsl(230, 49%, 37%)
HSVhsv(230, 66%, 55%)
CMYKcmyk(65.7%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.88, 19.37, -44.32)
CIE-LCHlch(29.88, 48.37, 293.61°)
OKLaboklab(40.28% 0.0016 -0.1272)
OKLCHoklch(40.28% 0.127 270.7)
XYZxyz(7.7843, 6.1879, 25.5900)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30408C #8C7C30
analogous
#306E8C #30408C #4E308C
triadic
#30408C #8C3040 #408C30
tetradic
#30408C #8C306E #8C7C30 #308C4E
square
#30408C #8C306E #8C7C30 #308C4E
split-complementary
#30408C #8C4E30 #6E8C30
monochromatic
#111631 #202B5E #30408C #4055BA #6A7BCC

Accessibility & contrast

On white

9.38
#30408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#30408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30408C
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30408C#FFFFFF#000000##FFFFFF
##30408C1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #30408c;
/* rgb */ color: rgb(48, 64, 140);
/* oklch */ color: oklch(40.3% 0.127 270.7);
Tailwind
colors: {
  custom: {
    50: '#7374ae',
    500: '#30408c',
    950: '#000000',
  },
}
SCSS
$custom: #30408c;
$custom-light: #7374ae;
$custom-dark: #000000;
JSON
{
  "hex": "#30408c",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 229.565,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40285,
    "c": 0.12721,
    "h": 270.7
  },
  "luminance": 0.06189
}

Semantic roles & 50–950 ramp

primary
#30408C
secondary
#B3A664
accent
#C14FD8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #30408C

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

Preview Lab → · Contrast checker → · Palette generator →

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