#30319B#30319B

#30319B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.167 H 274.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#30319B
RGBrgb(48, 49, 155)
HSLhsl(239, 53%, 40%)
HSVhsv(239, 69%, 61%)
CMYKcmyk(69%, 68.4%, 0%, 39.2%)
CIE-LABlab(27.27, 34.70, -57.77)
CIE-LCHlch(27.27, 67.39, 300.99°)
OKLaboklab(38.74% 0.0142 -0.1668)
OKLCHoklch(38.74% 0.167 274.9)
XYZxyz(8.2317, 5.1908, 31.5721)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30319B #9B9A30
analogous
#30679B #30319B #64309B
triadic
#30319B #9B3031 #319B30
tetradic
#30319B #9B3067 #9B9A30 #309B64
square
#30319B #9B3067 #9B9A30 #309B64
split-complementary
#30319B #9B6430 #679B30
monochromatic
#13133E #22226C #30319B #4345C5 #7273D3

Accessibility & contrast

On white

10.30
#30319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#30319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30319B
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30319B#FFFFFF#000000##FFFFFF
##30319B1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #30319b;
/* rgb */ color: rgb(48, 49, 155);
/* oklch */ color: oklch(38.7% 0.167 274.9);
Tailwind
colors: {
  custom: {
    50: '#776ab9',
    500: '#30319b',
    950: '#000000',
  },
}
SCSS
$custom: #30319b;
$custom-light: #776ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#30319b",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 239.439,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38743,
    "c": 0.16744,
    "h": 274.9
  },
  "luminance": 0.05192
}

Semantic roles & 50–950 ramp

primary
#30319B
secondary
#BBBA6C
accent
#DB4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #30319B

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

Preview Lab → · Contrast checker → · Palette generator →

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