#30319E#30319E

#30319E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.171 H 274.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#30319E
RGBrgb(48, 49, 158)
HSLhsl(239, 53%, 40%)
HSVhsv(239, 70%, 62%)
CMYKcmyk(69.6%, 69%, 0%, 38%)
CIE-LABlab(27.55, 35.75, -59.14)
CIE-LCHlch(27.55, 69.10, 301.15°)
OKLaboklab(39.03% 0.0138 -0.1708)
OKLCHoklch(39.03% 0.171 274.6)
XYZxyz(8.4867, 5.2928, 32.9155)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30319E #9E9D30
analogous
#30689E #30319E #66309E
triadic
#30319E #9E3031 #319E30
tetradic
#30319E #9E3068 #9E9D30 #309E66
square
#30319E #9E3068 #9E9D30 #309E66
split-complementary
#30319E #9E6630 #689E30
monochromatic
#131440 #22226F #30319E #4546C6 #7475D5

Accessibility & contrast

On white

10.20
#30319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#30319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30319E
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30319E#FFFFFF#000000##FFFFFF
##30319E1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #30319e;
/* rgb */ color: rgb(48, 49, 158);
/* oklch */ color: oklch(39.0% 0.171 274.6);
Tailwind
colors: {
  custom: {
    50: '#786abc',
    500: '#30319e',
    950: '#000000',
  },
}
SCSS
$custom: #30319e;
$custom-light: #786abc;
$custom-dark: #000000;
JSON
{
  "hex": "#30319e",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 239.455,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39032,
    "c": 0.17139,
    "h": 274.6
  },
  "luminance": 0.05294
}

Semantic roles & 50–950 ramp

primary
#30319E
secondary
#BDBC6D
accent
#DB4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #30319E

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

Preview Lab → · Contrast checker → · Palette generator →

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