#30309F#30309F

#30309F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.174 H 274.7°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#30309F
RGBrgb(48, 48, 159)
HSLhsl(240, 54%, 41%)
HSVhsv(240, 70%, 62%)
CMYKcmyk(69.8%, 69.8%, 0%, 37.6%)
CIE-LABlab(27.42, 36.72, -59.96)
CIE-LCHlch(27.42, 70.31, 301.48°)
OKLaboklab(38.97% 0.0144 -0.1732)
OKLCHoklch(38.97% 0.174 274.7)
XYZxyz(8.5318, 5.2447, 33.3569)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30309F #9F9F30
analogous
#30679F #30309F #67309F
triadic
#30309F #9F3030 #309F30
tetradic
#30309F #9F3067 #9F9F30 #309F67
square
#30309F #9F3067 #9F9F30 #309F67
split-complementary
#30309F #9F6730 #679F30
monochromatic
#141441 #222270 #30309F #4545C7 #7474D5

Accessibility & contrast

On white

10.25
#30309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#30309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30309F
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30309F#FFFFFF#000000##FFFFFF
##30309F1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #30309f;
/* rgb */ color: rgb(48, 48, 159);
/* oklch */ color: oklch(39.0% 0.174 274.7);
Tailwind
colors: {
  custom: {
    50: '#7869bc',
    500: '#30309f',
    950: '#000000',
  },
}
SCSS
$custom: #30309f;
$custom-light: #7869bc;
$custom-dark: #000000;
JSON
{
  "hex": "#30309f",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 240,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38966,
    "c": 0.17385,
    "h": 274.7
  },
  "luminance": 0.05245
}

Semantic roles & 50–950 ramp

primary
#30309F
secondary
#BDBD6E
accent
#DD4BDD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #30309F

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

Preview Lab → · Contrast checker → · Palette generator →

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