#301C95#301C95

#301C95 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.182 H 279.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#301C95
RGBrgb(48, 28, 149)
HSLhsl(250, 68%, 35%)
HSVhsv(250, 81%, 58%)
CMYKcmyk(67.8%, 81.2%, 0%, 41.6%)
CIE-LABlab(22.40, 44.63, -62.11)
CIE-LCHlch(22.40, 76.48, 305.70°)
OKLaboklab(35.1% 0.0284 -0.1794)
OKLCHoklch(35.1% 0.182 279)
XYZxyz(7.0573, 3.6282, 28.7564)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C95 #81951C
analogous
#1C4595 #301C95 #6C1C95
triadic
#301C95 #95301C #1C9530
tetradic
#301C95 #951C45 #81951C #1C956C
square
#301C95 #951C45 #81951C #1C956C
split-complementary
#301C95 #956C1C #45951C
monochromatic
#0F092E #1F1261 #301C95 #4126C9 #664EDE

Accessibility & contrast

On white

12.17
#301C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#301C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C95
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C95#FFFFFF#000000##FFFFFF
##301C951.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #301c95;
/* rgb */ color: rgb(48, 28, 149);
/* oklch */ color: oklch(35.1% 0.182 279.0);
Tailwind
colors: {
  custom: {
    50: '#785cb5',
    500: '#301c95',
    950: '#000000',
  },
}
SCSS
$custom: #301c95;
$custom-light: #785cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#301c95",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 249.917,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.351,
    "c": 0.1816,
    "h": 279
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#301C95
secondary
#ADC04D
accent
#EB3DCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301C95

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

Preview Lab → · Contrast checker → · Palette generator →

#301C95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva