#30167B#30167B

#30167B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.156 H 284.9°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#30167B
RGBrgb(48, 22, 123)
HSLhsl(255, 70%, 28%)
HSVhsv(255, 82%, 48%)
CMYKcmyk(61%, 82.1%, 0%, 51.8%)
CIE-LABlab(18.50, 39.61, -52.22)
CIE-LCHlch(18.50, 65.55, 307.18°)
OKLaboklab(31.54% 0.0401 -0.1505)
OKLCHoklch(31.54% 0.156 284.9)
XYZxyz(5.0799, 2.6319, 18.9754)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30167B #617B16
analogous
#162E7B #30167B #62167B
triadic
#30167B #7B3016 #167B30
tetradic
#30167B #7B162E #617B16 #167B62
square
#30167B #7B162E #617B16 #167B62
split-complementary
#30167B #7B6216 #2E7B16
monochromatic
#0A051A #1C0D47 #30167B #441FAF #5D31DA

Accessibility & contrast

On white

13.76
#30167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#30167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30167B
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30167B#FFFFFF#000000##FFFFFF
##30167B1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#043449
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30167b;
/* rgb */ color: rgb(48, 22, 123);
/* oklch */ color: oklch(31.5% 0.156 284.9);
Tailwind
colors: {
  custom: {
    50: '#7357a2',
    500: '#30167b',
    950: '#000000',
  },
}
SCSS
$custom: #30167b;
$custom-light: #7357a2;
$custom-dark: #000000;
JSON
{
  "hex": "#30167b",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 255.446,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31537,
    "c": 0.15574,
    "h": 284.9
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#30167B
secondary
#92B03D
accent
#EC3BBF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30167B

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

Preview Lab → · Contrast checker → · Palette generator →

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