#300F68#300F68

#300F68 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.140 H 291.7°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#300F68
RGBrgb(48, 15, 104)
HSLhsl(262, 75%, 23%)
HSVhsv(262, 86%, 41%)
CMYKcmyk(53.8%, 85.6%, 0%, 59.2%)
CIE-LABlab(15.33, 37.25, -45.15)
CIE-LCHlch(15.33, 58.53, 309.53°)
OKLaboklab(28.72% 0.0517 -0.1297)
OKLCHoklch(28.72% 0.14 291.7)
XYZxyz(3.8877, 1.9693, 13.2693)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F68 #47680F
analogous
#0F1A68 #300F68 #5C0F68
triadic
#300F68 #68300F #0F6830
tetradic
#300F68 #680F1A #47680F #0F685C
square
#300F68 #680F1A #47680F #0F685C
split-complementary
#300F68 #685C0F #1A680F
monochromatic
#0C041B #170733 #300F68 #49179D #611ED3

Accessibility & contrast

On white

15.06
#300F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#300F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F68
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F68#FFFFFF#000000##FFFFFF
##300F681.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#1D293C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #300f68;
/* rgb */ color: rgb(48, 15, 104);
/* oklch */ color: oklch(28.7% 0.140 291.7);
Tailwind
colors: {
  custom: {
    50: '#705394',
    500: '#300f68',
    950: '#000000',
  },
}
SCSS
$custom: #300f68;
$custom-light: #705394;
$custom-dark: #000000;
JSON
{
  "hex": "#300f68",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 262.247,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28715,
    "c": 0.13965,
    "h": 291.7
  },
  "luminance": 0.0197
}

Semantic roles & 50–950 ramp

primary
#300F68
secondary
#78A132
accent
#F136AC
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08020D
muted
#7B787E

Preview Lab

Preview with #300F68

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

Preview Lab → · Contrast checker → · Palette generator →

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