#30399A#30399A

#30399A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.156 H 273.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#30399A
RGBrgb(48, 57, 154)
HSLhsl(235, 52%, 40%)
HSVhsv(235, 69%, 60%)
CMYKcmyk(68.8%, 63%, 0%, 39.6%)
CIE-LABlab(29.13, 29.20, -54.13)
CIE-LCHlch(29.13, 61.50, 298.35°)
OKLaboklab(40.07% 0.0082 -0.1561)
OKLCHoklch(40.07% 0.156 273)
XYZxyz(8.5128, 5.8869, 31.2533)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30399A #9A9130
analogous
#306E9A #30399A #5C309A
triadic
#30399A #9A3039 #399A30
tetradic
#30399A #9A306E #9A9130 #309A5C
square
#30399A #9A306E #9A9130 #309A5C
split-complementary
#30399A #9A5C30 #6E9A30
monochromatic
#13163D #21286B #30399A #434EC4 #727AD3

Accessibility & contrast

On white

9.64
#30399A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#30399A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30399A
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30399A#FFFFFF#000000##FFFFFF
##30399A1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #30399a;
/* rgb */ color: rgb(48, 57, 154);
/* oklch */ color: oklch(40.1% 0.156 273.0);
Tailwind
colors: {
  custom: {
    50: '#766fb9',
    500: '#30399a',
    950: '#000000',
  },
}
SCSS
$custom: #30399a;
$custom-light: #766fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#30399a",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 154
  },
  "hsl": {
    "h": 234.906,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40069,
    "c": 0.15632,
    "h": 273
  },
  "luminance": 0.05888
}

Semantic roles & 50–950 ramp

primary
#30399A
secondary
#BBB46B
accent
#D04CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #30399A

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

Preview Lab → · Contrast checker → · Palette generator →

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