#30308F#30308F

#30308F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.153 H 276.1°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#30308F
RGBrgb(48, 48, 143)
HSLhsl(240, 50%, 37%)
HSVhsv(240, 66%, 56%)
CMYKcmyk(66.4%, 66.4%, 0%, 43.9%)
CIE-LABlab(25.94, 31.12, -52.59)
CIE-LCHlch(25.94, 61.10, 300.61°)
OKLaboklab(37.44% 0.0163 -0.1516)
OKLCHoklch(37.44% 0.153 276.1)
XYZxyz(7.2322, 4.7248, 26.5121)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30308F #8F8F30
analogous
#30608F #30308F #60308F
triadic
#30308F #8F3030 #308F30
tetradic
#30308F #8F3060 #8F8F30 #308F60
square
#30308F #8F3060 #8F8F30 #308F60
split-complementary
#30308F #8F6030 #608F30
monochromatic
#111133 #212161 #30308F #3F3FBD #6C6CCE

Accessibility & contrast

On white

10.80
#30308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#30308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30308F
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30308F#FFFFFF#000000##FFFFFF
##30308F1.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #30308f;
/* rgb */ color: rgb(48, 48, 143);
/* oklch */ color: oklch(37.4% 0.153 276.1);
Tailwind
colors: {
  custom: {
    50: '#7568b1',
    500: '#30308f',
    950: '#000000',
  },
}
SCSS
$custom: #30308f;
$custom-light: #7568b1;
$custom-dark: #000000;
JSON
{
  "hex": "#30308f",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37435,
    "c": 0.15252,
    "h": 276.1
  },
  "luminance": 0.04725
}

Semantic roles & 50–950 ramp

primary
#30308F
secondary
#B5B566
accent
#D94FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #30308F

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

Preview Lab → · Contrast checker → · Palette generator →

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