#30399B#30399B

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

Color values

HEX#30399B
RGBrgb(48, 57, 155)
HSLhsl(235, 53%, 40%)
HSVhsv(235, 69%, 61%)
CMYKcmyk(69%, 63.2%, 0%, 39.2%)
CIE-LABlab(29.21, 29.56, -54.60)
CIE-LCHlch(29.21, 62.09, 298.44°)
OKLaboklab(40.16% 0.0081 -0.1575)
OKLCHoklch(40.16% 0.158 273)
XYZxyz(8.5965, 5.9204, 31.6937)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30399B #9B9230
analogous
#306F9B #30399B #5C309B
triadic
#30399B #9B3039 #399B30
tetradic
#30399B #9B306F #9B9230 #309B5C
square
#30399B #9B306F #9B9230 #309B5C
split-complementary
#30399B #9B5C30 #6F9B30
monochromatic
#13173E #22286C #30399B #434EC5 #727AD3

Accessibility & contrast

On white

9.61
#30399B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30399B
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30399B#FFFFFF#000000##FFFFFF
##30399B1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30399b;
/* rgb */ color: rgb(48, 57, 155);
/* oklch */ color: oklch(40.2% 0.158 273.0);
Tailwind
colors: {
  custom: {
    50: '#766fb9',
    500: '#30399b',
    950: '#000000',
  },
}
SCSS
$custom: #30399b;
$custom-light: #766fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#30399b",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 234.953,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40158,
    "c": 0.1577,
    "h": 273
  },
  "luminance": 0.05921
}

Semantic roles & 50–950 ramp

primary
#30399B
secondary
#BBB46C
accent
#D04CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #30399B

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

Preview Lab → · Contrast checker → · Palette generator →

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