#30399F#30399F

#30399F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.163 H 272.8°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#30399F
RGBrgb(48, 57, 159)
HSLhsl(235, 54%, 41%)
HSVhsv(235, 70%, 62%)
CMYKcmyk(69.8%, 64.2%, 0%, 37.6%)
CIE-LABlab(29.56, 31.01, -56.46)
CIE-LCHlch(29.56, 64.42, 298.78°)
OKLaboklab(40.52% 0.0079 -0.163)
OKLCHoklch(40.52% 0.163 272.8)
XYZxyz(8.9380, 6.0570, 33.4922)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30399F #9F9630
analogous
#30709F #30399F #5E309F
triadic
#30399F #9F3039 #399F30
tetradic
#30399F #9F3070 #9F9630 #309F5E
square
#30399F #9F3070 #9F9630 #309F5E
split-complementary
#30399F #9F5E30 #709F30
monochromatic
#141741 #222870 #30399F #4550C7 #747CD5

Accessibility & contrast

On white

9.50
#30399F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#30399F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30399F
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30399F#FFFFFF#000000##FFFFFF
##30399F1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #30399f;
/* rgb */ color: rgb(48, 57, 159);
/* oklch */ color: oklch(40.5% 0.163 272.8);
Tailwind
colors: {
  custom: {
    50: '#776fbc',
    500: '#30399f',
    950: '#000000',
  },
}
SCSS
$custom: #30399f;
$custom-light: #776fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#30399f",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 235.135,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40519,
    "c": 0.16316,
    "h": 272.8
  },
  "luminance": 0.06058
}

Semantic roles & 50–950 ramp

primary
#30399F
secondary
#BDB76E
accent
#D14BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #30399F

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

Preview Lab → · Contrast checker → · Palette generator →

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