#30309B#30309B

#30309B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.169 H 275.1°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#30309B
RGBrgb(48, 48, 155)
HSLhsl(240, 53%, 40%)
HSVhsv(240, 69%, 61%)
CMYKcmyk(69%, 69%, 0%, 39.2%)
CIE-LABlab(27.04, 35.33, -58.15)
CIE-LCHlch(27.04, 68.04, 301.28°)
OKLaboklab(38.57% 0.0149 -0.1679)
OKLCHoklch(38.57% 0.169 275.1)
XYZxyz(8.1903, 5.1081, 31.5583)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30309B #9B9B30
analogous
#30669B #30309B #66309B
triadic
#30309B #9B3030 #309B30
tetradic
#30309B #9B3066 #9B9B30 #309B66
square
#30309B #9B3066 #9B9B30 #309B66
split-complementary
#30309B #9B6630 #669B30
monochromatic
#13133E #22226C #30309B #4343C5 #7272D3

Accessibility & contrast

On white

10.39
#30309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#30309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30309B
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30309B#FFFFFF#000000##FFFFFF
##30309B1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #30309b;
/* rgb */ color: rgb(48, 48, 155);
/* oklch */ color: oklch(38.6% 0.169 275.1);
Tailwind
colors: {
  custom: {
    50: '#7769b9',
    500: '#30309b',
    950: '#000000',
  },
}
SCSS
$custom: #30309b;
$custom-light: #7769b9;
$custom-dark: #000000;
JSON
{
  "hex": "#30309b",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 240,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38575,
    "c": 0.16861,
    "h": 275.1
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#30309B
secondary
#BBBB6C
accent
#DC4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #30309B

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

Preview Lab → · Contrast checker → · Palette generator →

#30309B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva