#30308D#30308D

#30308D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.150 H 276.3°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#30308D
RGBrgb(48, 48, 141)
HSLhsl(240, 49%, 37%)
HSVhsv(240, 66%, 55%)
CMYKcmyk(66%, 66%, 0%, 44.7%)
CIE-LABlab(25.76, 30.41, -51.64)
CIE-LCHlch(25.76, 59.93, 300.49°)
OKLaboklab(37.25% 0.0164 -0.1489)
OKLCHoklch(37.25% 0.15 276.3)
XYZxyz(7.0820, 4.6648, 25.7213)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30308D #8D8D30
analogous
#305F8D #30308D #5F308D
triadic
#30308D #8D3030 #308D30
tetradic
#30308D #8D305F #8D8D30 #308D5F
square
#30308D #8D305F #8D8D30 #308D5F
split-complementary
#30308D #8D5F30 #5F8D30
monochromatic
#111132 #20205F #30308D #4040BB #6B6BCD

Accessibility & contrast

On white

10.86
#30308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#30308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30308D
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30308D#FFFFFF#000000##FFFFFF
##30308D1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #30308d;
/* rgb */ color: rgb(48, 48, 141);
/* oklch */ color: oklch(37.3% 0.150 276.3);
Tailwind
colors: {
  custom: {
    50: '#7468af',
    500: '#30308d',
    950: '#000000',
  },
}
SCSS
$custom: #30308d;
$custom-light: #7468af;
$custom-dark: #000000;
JSON
{
  "hex": "#30308d",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 240,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3725,
    "c": 0.14977,
    "h": 276.3
  },
  "luminance": 0.04665
}

Semantic roles & 50–950 ramp

primary
#30308D
secondary
#B4B465
accent
#D94FD9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #30308D

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

Preview Lab → · Contrast checker → · Palette generator →

#30308D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva