#30399E#30399E

#30399E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.162 H 272.8°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#30399E
RGBrgb(48, 57, 158)
HSLhsl(235, 53%, 40%)
HSVhsv(235, 70%, 62%)
CMYKcmyk(69.6%, 63.9%, 0%, 38%)
CIE-LABlab(29.47, 30.65, -56.00)
CIE-LCHlch(29.47, 63.84, 298.69°)
OKLaboklab(40.43% 0.008 -0.1616)
OKLCHoklch(40.43% 0.162 272.8)
XYZxyz(8.8515, 6.0224, 33.0371)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30399E #9E9530
analogous
#30709E #30399E #5E309E
triadic
#30399E #9E3039 #399E30
tetradic
#30399E #9E3070 #9E9530 #309E5E
square
#30399E #9E3070 #9E9530 #309E5E
split-complementary
#30399E #9E5E30 #709E30
monochromatic
#131740 #22286F #30399E #454FC6 #747CD5

Accessibility & contrast

On white

9.53
#30399E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#30399E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30399E
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30399E#FFFFFF#000000##FFFFFF
##30399E1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #30399e;
/* rgb */ color: rgb(48, 57, 158);
/* oklch */ color: oklch(40.4% 0.162 272.8);
Tailwind
colors: {
  custom: {
    50: '#776fbc',
    500: '#30399e',
    950: '#000000',
  },
}
SCSS
$custom: #30399e;
$custom-light: #776fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#30399e",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 158
  },
  "hsl": {
    "h": 235.091,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40428,
    "c": 0.1618,
    "h": 272.8
  },
  "luminance": 0.06023
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30399E

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

Preview Lab → · Contrast checker → · Palette generator →

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