#301F95#301F95

#301F95 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.179 H 278.6°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#301F95
RGBrgb(48, 31, 149)
HSLhsl(249, 66%, 35%)
HSVhsv(249, 79%, 58%)
CMYKcmyk(67.8%, 79.2%, 0%, 41.6%)
CIE-LABlab(22.92, 43.12, -61.25)
CIE-LCHlch(22.92, 74.91, 305.15°)
OKLaboklab(35.46% 0.0268 -0.1769)
OKLCHoklch(35.46% 0.179 278.6)
XYZxyz(7.1320, 3.7777, 28.7813)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F95 #84951F
analogous
#1F4995 #301F95 #6B1F95
triadic
#301F95 #95301F #1F9530
tetradic
#301F95 #951F49 #84951F #1F956B
square
#301F95 #951F49 #84951F #1F956B
split-complementary
#301F95 #956B1F #49951F
monochromatic
#0F0A30 #201462 #301F95 #402AC8 #6753DB

Accessibility & contrast

On white

11.96
#301F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#301F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F95
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F95#FFFFFF#000000##FFFFFF
##301F951.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301f95;
/* rgb */ color: rgb(48, 31, 149);
/* oklch */ color: oklch(35.5% 0.179 278.6);
Tailwind
colors: {
  custom: {
    50: '#775eb5',
    500: '#301f95',
    950: '#000000',
  },
}
SCSS
$custom: #301f95;
$custom-light: #775eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#301f95",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 248.644,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35463,
    "c": 0.17892,
    "h": 278.6
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#301F95
secondary
#AFBF51
accent
#E93FD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301F95

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

Preview Lab → · Contrast checker → · Palette generator →

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