#301F9B#301F9B

#301F9B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.186 H 277.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#301F9B
RGBrgb(48, 31, 155)
HSLhsl(248, 67%, 36%)
HSVhsv(248, 80%, 61%)
CMYKcmyk(69%, 80%, 0%, 39.2%)
CIE-LABlab(23.59, 45.00, -63.84)
CIE-LCHlch(23.59, 78.11, 305.18°)
OKLaboklab(36.12% 0.0252 -0.1844)
OKLCHoklch(36.12% 0.186 277.8)
XYZxyz(7.6234, 3.9742, 31.3693)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F9B #8A9B1F
analogous
#1F4C9B #301F9B #6E1F9B
triadic
#301F9B #9B301F #1F9B30
tetradic
#301F9B #9B1F4C #8A9B1F #1F9B6E
square
#301F9B #9B1F4C #8A9B1F #1F9B6E
split-complementary
#301F9B #9B6E1F #4C9B1F
monochromatic
#100B35 #201568 #301F9B #4029CE #6957DD

Accessibility & contrast

On white

11.70
#301F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301F9B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F9B#FFFFFF#000000##FFFFFF
##301F9B1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301f9b;
/* rgb */ color: rgb(48, 31, 155);
/* oklch */ color: oklch(36.1% 0.186 277.8);
Tailwind
colors: {
  custom: {
    50: '#795eba',
    500: '#301f9b',
    950: '#000000',
  },
}
SCSS
$custom: #301f9b;
$custom-light: #795eba;
$custom-dark: #000000;
JSON
{
  "hex": "#301f9b",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 248.226,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36122,
    "c": 0.18616,
    "h": 277.8
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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