#30319F#30319F

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

Color values

HEX#30319F
RGBrgb(48, 49, 159)
HSLhsl(239, 54%, 41%)
HSVhsv(239, 70%, 62%)
CMYKcmyk(69.8%, 69.2%, 0%, 37.6%)
CIE-LABlab(27.65, 36.10, -59.59)
CIE-LCHlch(27.65, 69.67, 301.21°)
OKLaboklab(39.13% 0.0137 -0.1722)
OKLCHoklch(39.13% 0.173 274.6)
XYZxyz(8.5732, 5.3274, 33.3707)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30319F #9F9E30
analogous
#30699F #30319F #66309F
triadic
#30319F #9F3031 #319F30
tetradic
#30319F #9F3069 #9F9E30 #309F66
square
#30319F #9F3069 #9F9E30 #309F66
split-complementary
#30319F #9F6630 #699F30
monochromatic
#141441 #222370 #30319F #4546C7 #7475D5

Accessibility & contrast

On white

10.17
#30319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#30319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30319F
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30319F#FFFFFF#000000##FFFFFF
##30319F1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #30319f;
/* rgb */ color: rgb(48, 49, 159);
/* oklch */ color: oklch(39.1% 0.173 274.6);
Tailwind
colors: {
  custom: {
    50: '#786abc',
    500: '#30319f',
    950: '#000000',
  },
}
SCSS
$custom: #30319f;
$custom-light: #786abc;
$custom-dark: #000000;
JSON
{
  "hex": "#30319f",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 239.459,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.3913,
    "c": 0.17271,
    "h": 274.6
  },
  "luminance": 0.05328
}

Semantic roles & 50–950 ramp

primary
#30319F
secondary
#BDBC6E
accent
#DC4BDD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #30319F

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

Preview Lab → · Contrast checker → · Palette generator →

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