#30399C#30399C

#30399C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.159 H 272.9°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#30399C
RGBrgb(48, 57, 156)
HSLhsl(235, 53%, 40%)
HSVhsv(235, 69%, 61%)
CMYKcmyk(69.2%, 63.5%, 0%, 38.8%)
CIE-LABlab(29.30, 29.93, -55.07)
CIE-LCHlch(29.30, 62.67, 298.52°)
OKLaboklab(40.25% 0.0081 -0.1589)
OKLCHoklch(40.25% 0.159 272.9)
XYZxyz(8.6808, 5.9541, 32.1378)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30399C #9C9330
analogous
#306F9C #30399C #5D309C
triadic
#30399C #9C3039 #399C30
tetradic
#30399C #9C306F #9C9330 #309C5D
square
#30399C #9C306F #9C9330 #309C5D
split-complementary
#30399C #9C5D30 #6F9C30
monochromatic
#13173E #22286D #30399C #444FC5 #737BD4

Accessibility & contrast

On white

9.58
#30399C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#30399C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30399C
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30399C#FFFFFF#000000##FFFFFF
##30399C1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #30399c;
/* rgb */ color: rgb(48, 57, 156);
/* oklch */ color: oklch(40.2% 0.159 272.9);
Tailwind
colors: {
  custom: {
    50: '#776fba',
    500: '#30399c',
    950: '#000000',
  },
}
SCSS
$custom: #30399c;
$custom-light: #776fba;
$custom-dark: #000000;
JSON
{
  "hex": "#30399c",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 156
  },
  "hsl": {
    "h": 235,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.15908,
    "h": 272.9
  },
  "luminance": 0.05955
}

Semantic roles & 50–950 ramp

primary
#30399C
secondary
#BCB56C
accent
#D04BDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #30399C

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

Preview Lab → · Contrast checker → · Palette generator →

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