#301255#301255

#301255 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.113 H 299.0°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#301255
RGBrgb(48, 18, 85)
HSLhsl(267, 65%, 20%)
HSVhsv(267, 79%, 33%)
CMYKcmyk(43.5%, 78.8%, 0%, 66.7%)
CIE-LABlab(13.92, 30.33, -34.75)
CIE-LCHlch(13.92, 46.12, 311.11°)
OKLaboklab(27.15% 0.055 -0.0993)
OKLCHoklch(27.15% 0.113 299)
XYZxyz(3.0745, 1.7168, 8.7620)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301255 #375512
analogous
#121555 #301255 #521255
triadic
#301255 #553012 #125530
tetradic
#301255 #551215 #375512 #125552
square
#301255 #551215 #375512 #125552
split-complementary
#301255 #555212 #155512
monochromatic
#0E0519 #130722 #301255 #4D1D88 #6927BA

Accessibility & contrast

On white

15.63
#301255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#301255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301255
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301255#FFFFFF#000000##FFFFFF
##3012551.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#272332
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301255;
/* rgb */ color: rgb(48, 18, 85);
/* oklch */ color: oklch(27.2% 0.113 299.0);
Tailwind
colors: {
  custom: {
    50: '#6d5385',
    500: '#301255',
    950: '#000000',
  },
}
SCSS
$custom: #301255;
$custom-light: #6d5385;
$custom-dark: #000000;
JSON
{
  "hex": "#301255",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 266.866,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27153,
    "c": 0.11349,
    "h": 299
  },
  "luminance": 0.01717
}

Semantic roles & 50–950 ramp

primary
#301255
secondary
#668E35
accent
#E8409D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301255

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

Preview Lab → · Contrast checker → · Palette generator →

#301255 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva