#30123F#30123F

#30123F is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.086 H 312.6°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#30123F
RGBrgb(48, 18, 63)
HSLhsl(280, 56%, 16%)
HSVhsv(280, 71%, 25%)
CMYKcmyk(23.8%, 71.4%, 0%, 75.3%)
CIE-LABlab(12.09, 24.22, -22.48)
CIE-LCHlch(12.09, 33.05, 317.13°)
OKLaboklab(25.26% 0.0582 -0.0632)
OKLCHoklch(25.26% 0.086 312.6)
XYZxyz(2.3323, 1.4199, 4.8529)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30123F #213F12
analogous
#19123F #30123F #3F1237
triadic
#30123F #3F3012 #123F30
tetradic
#30123F #3F1912 #213F12 #12373F
square
#30123F #3F1912 #213F12 #12373F
split-complementary
#30123F #373F12 #123F19
monochromatic
#120718 #120718 #30123F #54206F #792D9E

Accessibility & contrast

On white

16.36
#30123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#30123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30123F
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30123F#FFFFFF#000000##FFFFFF
##30123F1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021E40
Deuteranopia (green-blind)
#0F203E
Tritanopia (blue-blind)
#2E1B26
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #30123f;
/* rgb */ color: rgb(48, 18, 63);
/* oklch */ color: oklch(25.3% 0.086 312.6);
Tailwind
colors: {
  custom: {
    50: '#6a5274',
    500: '#30123f',
    950: '#000000',
  },
}
SCSS
$custom: #30123f;
$custom-light: #6a5274;
$custom-dark: #000000;
JSON
{
  "hex": "#30123f",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 280,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2526,
    "c": 0.0859,
    "h": 312.6
  },
  "luminance": 0.0142
}

Semantic roles & 50–950 ramp

primary
#30123F
secondary
#4B7835
accent
#DF497B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #30123F

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

Preview Lab → · Contrast checker → · Palette generator →

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