#301F9C#301F9C

#301F9C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.187 H 277.6°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#301F9C
RGBrgb(48, 31, 156)
HSLhsl(248, 67%, 37%)
HSVhsv(248, 80%, 61%)
CMYKcmyk(69.2%, 80.1%, 0%, 38.8%)
CIE-LABlab(23.70, 45.31, -64.27)
CIE-LCHlch(23.70, 78.63, 305.18°)
OKLaboklab(36.23% 0.0249 -0.1857)
OKLCHoklch(36.23% 0.187 277.6)
XYZxyz(7.7077, 4.0080, 31.8135)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F9C #8B9C1F
analogous
#1F4D9C #301F9C #6F1F9C
triadic
#301F9C #9C301F #1F9C30
tetradic
#301F9C #9C1F4D #8B9C1F #1F9C6F
square
#301F9C #9C1F4D #8B9C1F #1F9C6F
split-complementary
#301F9C #9C6F1F #4D9C1F
monochromatic
#110B36 #201569 #301F9C #4029CF #6A58DE

Accessibility & contrast

On white

11.66
#301F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#301F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F9C
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F9C#FFFFFF#000000##FFFFFF
##301F9C1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301f9c;
/* rgb */ color: rgb(48, 31, 156);
/* oklch */ color: oklch(36.2% 0.187 277.6);
Tailwind
colors: {
  custom: {
    50: '#795eba',
    500: '#301f9c',
    950: '#000000',
  },
}
SCSS
$custom: #301f9c;
$custom-light: #795eba;
$custom-dark: #000000;
JSON
{
  "hex": "#301f9c",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 248.16,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36233,
    "c": 0.18735,
    "h": 277.6
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#301F9C
secondary
#B3C155
accent
#EA3ED2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #301F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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