#30408E#30408E

#30408E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.130 H 270.8°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#30408E
RGBrgb(48, 64, 142)
HSLhsl(230, 49%, 37%)
HSVhsv(230, 66%, 56%)
CMYKcmyk(66.2%, 54.9%, 0%, 44.3%)
CIE-LABlab(30.03, 20.11, -45.31)
CIE-LCHlch(30.03, 49.58, 293.93°)
OKLaboklab(40.44% 0.0018 -0.1301)
OKLCHoklch(40.44% 0.13 270.8)
XYZxyz(7.9332, 6.2475, 26.3738)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30408E #8E7E30
analogous
#306F8E #30408E #4F308E
triadic
#30408E #8E3040 #408E30
tetradic
#30408E #8E306F #8E7E30 #308E4F
square
#30408E #8E306F #8E7E30 #308E4F
split-complementary
#30408E #8E4F30 #6F8E30
monochromatic
#111733 #212B60 #30408E #3F55BC #6B7CCD

Accessibility & contrast

On white

9.33
#30408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#30408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30408E
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30408E#FFFFFF#000000##FFFFFF
##30408E1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4B91
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #30408e;
/* rgb */ color: rgb(48, 64, 142);
/* oklch */ color: oklch(40.4% 0.130 270.8);
Tailwind
colors: {
  custom: {
    50: '#7374b0',
    500: '#30408e',
    950: '#000000',
  },
}
SCSS
$custom: #30408e;
$custom-light: #7374b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30408e",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 229.787,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40442,
    "c": 0.13013,
    "h": 270.8
  },
  "luminance": 0.06248
}

Semantic roles & 50–950 ramp

primary
#30408E
secondary
#B4A765
accent
#C14FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #30408E

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

Preview Lab → · Contrast checker → · Palette generator →

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