#30167C#30167C

#30167C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.157 H 284.7°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#30167C
RGBrgb(48, 22, 124)
HSLhsl(255, 70%, 29%)
HSVhsv(255, 82%, 49%)
CMYKcmyk(61.3%, 82.3%, 0%, 51.4%)
CIE-LABlab(18.61, 39.91, -52.68)
CIE-LCHlch(18.61, 66.09, 307.15°)
OKLaboklab(31.65% 0.0398 -0.1518)
OKLCHoklch(31.65% 0.157 284.7)
XYZxyz(5.1428, 2.6571, 19.3067)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30167C #627C16
analogous
#162F7C #30167C #63167C
triadic
#30167C #7C3016 #167C30
tetradic
#30167C #7C162F #627C16 #167C63
square
#30167C #7C162F #627C16 #167C63
split-complementary
#30167C #7C6316 #2F7C16
monochromatic
#0A051A #1C0D48 #30167C #441FB0 #5D32DB

Accessibility & contrast

On white

13.71
#30167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30167C
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30167C#FFFFFF#000000##FFFFFF
##30167C1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#023449
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30167c;
/* rgb */ color: rgb(48, 22, 124);
/* oklch */ color: oklch(31.6% 0.157 284.7);
Tailwind
colors: {
  custom: {
    50: '#7357a3',
    500: '#30167c',
    950: '#000000',
  },
}
SCSS
$custom: #30167c;
$custom-light: #7357a3;
$custom-dark: #000000;
JSON
{
  "hex": "#30167c",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 255.294,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31646,
    "c": 0.15695,
    "h": 284.7
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#30167C
secondary
#93B13D
accent
#ED3BBF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30167C

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

Preview Lab → · Contrast checker → · Palette generator →

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