#30317C#30317C

#30317C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.124 H 277.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#30317C
RGBrgb(48, 49, 124)
HSLhsl(239, 44%, 34%)
HSVhsv(239, 61%, 49%)
CMYKcmyk(61.3%, 60.5%, 0%, 51.4%)
CIE-LABlab(24.58, 23.68, -42.92)
CIE-LCHlch(24.58, 49.02, 298.89°)
OKLaboklab(35.93% 0.0163 -0.1233)
OKLCHoklch(35.93% 0.124 277.5)
XYZxyz(5.9542, 4.2798, 19.5772)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30317C #7C7B30
analogous
#30577C #30317C #55307C
triadic
#30317C #7C3031 #317C30
tetradic
#30317C #7C3057 #7C7B30 #307C55
square
#30317C #7C3057 #7C7B30 #307C55
split-complementary
#30317C #7C5530 #577C30
monochromatic
#0E0E24 #1F2050 #30317C #4142A8 #6465C3

Accessibility & contrast

On white

11.31
#30317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#30317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30317C
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30317C#FFFFFF#000000##FFFFFF
##30317C1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #30317c;
/* rgb */ color: rgb(48, 49, 124);
/* oklch */ color: oklch(35.9% 0.124 277.5);
Tailwind
colors: {
  custom: {
    50: '#7169a3',
    500: '#30317c',
    950: '#000000',
  },
}
SCSS
$custom: #30317c;
$custom-light: #7169a3;
$custom-dark: #000000;
JSON
{
  "hex": "#30317c",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 239.211,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35933,
    "c": 0.12435,
    "h": 277.5
  },
  "luminance": 0.0428
}

Semantic roles & 50–950 ramp

primary
#30317C
secondary
#AAA95E
accent
#D254D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #30317C

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

Preview Lab → · Contrast checker → · Palette generator →

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