#301657#301657

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

Color values

HEX#301657
RGBrgb(48, 22, 87)
HSLhsl(264, 60%, 21%)
HSVhsv(264, 75%, 34%)
CMYKcmyk(44.8%, 74.7%, 0%, 65.9%)
CIE-LABlab(14.90, 28.69, -34.52)
CIE-LCHlch(14.90, 44.88, 309.73°)
OKLaboklab(27.9% 0.0501 -0.0986)
OKLCHoklch(27.9% 0.111 296.9)
XYZxyz(3.2257, 1.8903, 9.2099)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301657 #3D5716
analogous
#161D57 #301657 #511657
triadic
#301657 #573016 #165730
tetradic
#301657 #57161D #3D5716 #165751
square
#301657 #57161D #3D5716 #165751
split-complementary
#301657 #575116 #1D5716
monochromatic
#0D0618 #150A26 #301657 #4B2288 #662FB9

Accessibility & contrast

On white

15.24
#301657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301657
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301657#FFFFFF#000000##FFFFFF
##3016571.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#262634
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301657;
/* rgb */ color: rgb(48, 22, 87);
/* oklch */ color: oklch(27.9% 0.111 296.9);
Tailwind
colors: {
  custom: {
    50: '#6c5587',
    500: '#301657',
    950: '#000000',
  },
}
SCSS
$custom: #301657;
$custom-light: #6c5587;
$custom-dark: #000000;
JSON
{
  "hex": "#301657",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 264,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27902,
    "c": 0.11058,
    "h": 296.9
  },
  "luminance": 0.0189
}

Semantic roles & 50–950 ramp

primary
#301657
secondary
#6D8E3A
accent
#E345A4
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301657

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

Preview Lab → · Contrast checker → · Palette generator →

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