#30317A#30317A

#30317A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.121 H 277.7°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#30317A
RGBrgb(48, 49, 122)
HSLhsl(239, 44%, 33%)
HSVhsv(239, 61%, 48%)
CMYKcmyk(60.7%, 59.8%, 0%, 52.2%)
CIE-LABlab(24.42, 22.97, -41.92)
CIE-LCHlch(24.42, 47.80, 298.72°)
OKLaboklab(35.77% 0.0163 -0.1203)
OKLCHoklch(35.77% 0.121 277.7)
XYZxyz(5.8290, 4.2297, 18.9178)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30317A #7A7930
analogous
#30567A #30317A #54307A
triadic
#30317A #7A3031 #317A30
tetradic
#30317A #7A3056 #7A7930 #307A54
square
#30317A #7A3056 #7A7930 #307A54
split-complementary
#30317A #7A5430 #567A30
monochromatic
#0D0E22 #1F1F4E #30317A #4143A6 #6364C2

Accessibility & contrast

On white

11.38
#30317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#30317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30317A
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30317A#FFFFFF#000000##FFFFFF
##30317A1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #30317a;
/* rgb */ color: rgb(48, 49, 122);
/* oklch */ color: oklch(35.8% 0.121 277.7);
Tailwind
colors: {
  custom: {
    50: '#7069a1',
    500: '#30317a',
    950: '#000000',
  },
}
SCSS
$custom: #30317a;
$custom-light: #7069a1;
$custom-dark: #000000;
JSON
{
  "hex": "#30317a",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 239.189,
    "s": 43.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35765,
    "c": 0.1214,
    "h": 277.7
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#30317A
secondary
#A9A85D
accent
#D255D3
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #30317A

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

Preview Lab → · Contrast checker → · Palette generator →

#30317A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva