#300F56#300F56

#300F56 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.9% C 0.118 H 299.2°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#300F56
RGBrgb(48, 15, 86)
HSLhsl(268, 70%, 20%)
HSVhsv(268, 83%, 34%)
CMYKcmyk(44.2%, 82.6%, 0%, 66.3%)
CIE-LABlab(13.48, 32.13, -36.15)
CIE-LCHlch(13.48, 48.37, 311.63°)
OKLaboklab(26.87% 0.0578 -0.1034)
OKLCHoklch(26.87% 0.118 299.2)
XYZxyz(3.0690, 1.6419, 8.9575)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F56 #35560F
analogous
#0F1256 #300F56 #530F56
triadic
#300F56 #56300F #0F5630
tetradic
#300F56 #560F12 #35560F #0F5653
square
#300F56 #560F12 #35560F #0F5653
split-complementary
#300F56 #56530F #12560F
monochromatic
#0F051A #130622 #300F56 #4D188A #6A21BE

Accessibility & contrast

On white

15.81
#300F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300F56
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F56#FFFFFF#000000##FFFFFF
##300F561.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#272232
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #300f56;
/* rgb */ color: rgb(48, 15, 86);
/* oklch */ color: oklch(26.9% 0.118 299.2);
Tailwind
colors: {
  custom: {
    50: '#6d5186',
    500: '#300f56',
    950: '#000000',
  },
}
SCSS
$custom: #300f56;
$custom-light: #6d5186;
$custom-dark: #000000;
JSON
{
  "hex": "#300f56",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 267.887,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26871,
    "c": 0.11843,
    "h": 299.2
  },
  "luminance": 0.01642
}

Semantic roles & 50–950 ramp

primary
#300F56
secondary
#649031
accent
#ED3B9A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #300F56

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

Preview Lab → · Contrast checker → · Palette generator →

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