#300F55#300F55

#300F55 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.117 H 299.7°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#300F55
RGBrgb(48, 15, 85)
HSLhsl(268, 70%, 20%)
HSVhsv(268, 82%, 33%)
CMYKcmyk(43.5%, 82.4%, 0%, 66.7%)
CIE-LABlab(13.39, 31.85, -35.63)
CIE-LCHlch(13.39, 47.79, 311.80°)
OKLaboklab(26.77% 0.0581 -0.1018)
OKLCHoklch(26.77% 0.117 299.7)
XYZxyz(3.0290, 1.6259, 8.7468)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F55 #34550F
analogous
#0F1155 #300F55 #530F55
triadic
#300F55 #55300F #0F5530
tetradic
#300F55 #550F11 #34550F #0F5553
square
#300F55 #550F11 #34550F #0F5553
split-complementary
#300F55 #55530F #11550F
monochromatic
#0F051A #130621 #300F55 #4D1889 #6B21BD

Accessibility & contrast

On white

15.85
#300F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#300F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F55
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F55#FFFFFF#000000##FFFFFF
##300F551.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002257
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#272131
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #300f55;
/* rgb */ color: rgb(48, 15, 85);
/* oklch */ color: oklch(26.8% 0.117 299.7);
Tailwind
colors: {
  custom: {
    50: '#6d5186',
    500: '#300f55',
    950: '#000000',
  },
}
SCSS
$custom: #300f55;
$custom-light: #6d5186;
$custom-dark: #000000;
JSON
{
  "hex": "#300f55",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 268.286,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26773,
    "c": 0.11724,
    "h": 299.7
  },
  "luminance": 0.01626
}

Semantic roles & 50–950 ramp

primary
#300F55
secondary
#638F31
accent
#ED3B99
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #300F55

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

Preview Lab → · Contrast checker → · Palette generator →

#300F55 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva