#301755#301755

#301755 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.107 H 297.5°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#301755
RGBrgb(48, 23, 85)
HSLhsl(264, 57%, 21%)
HSVhsv(264, 73%, 33%)
CMYKcmyk(43.5%, 72.9%, 0%, 66.7%)
CIE-LABlab(14.94, 27.50, -33.10)
CIE-LCHlch(14.94, 43.04, 309.72°)
OKLaboklab(27.87% 0.0492 -0.0945)
OKLCHoklch(27.87% 0.107 297.5)
XYZxyz(3.1646, 1.8970, 8.7920)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301755 #3C5517
analogous
#171D55 #301755 #4F1755
triadic
#301755 #553017 #175530
tetradic
#301755 #55171D #3C5517 #17554F
square
#301755 #55171D #3C5517 #17554F
split-complementary
#301755 #554F17 #1D5517
monochromatic
#0E0718 #150A25 #301755 #4B2485 #6631B5

Accessibility & contrast

On white

15.22
#301755 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301755 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301755
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301755#FFFFFF#000000##FFFFFF
##3017551.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#002554
Tritanopia (blue-blind)
#272633
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301755;
/* rgb */ color: rgb(48, 23, 85);
/* oklch */ color: oklch(27.9% 0.107 297.5);
Tailwind
colors: {
  custom: {
    50: '#6c5685',
    500: '#301755',
    950: '#000000',
  },
}
SCSS
$custom: #301755;
$custom-light: #6c5685;
$custom-dark: #000000;
JSON
{
  "hex": "#301755",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 85
  },
  "hsl": {
    "h": 264.194,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27874,
    "c": 0.10651,
    "h": 297.5
  },
  "luminance": 0.01897
}

Semantic roles & 50–950 ramp

primary
#301755
secondary
#6C8C3C
accent
#E147A3
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301755

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

Preview Lab → · Contrast checker → · Palette generator →

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