#301F94#301F94

#301F94 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.178 H 278.8°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#301F94
RGBrgb(48, 31, 148)
HSLhsl(249, 65%, 35%)
HSVhsv(249, 79%, 58%)
CMYKcmyk(67.6%, 79.1%, 0%, 42%)
CIE-LABlab(22.81, 42.81, -60.81)
CIE-LCHlch(22.81, 74.37, 305.14°)
OKLaboklab(35.35% 0.0271 -0.1756)
OKLCHoklch(35.35% 0.178 278.8)
XYZxyz(7.0525, 3.7459, 28.3626)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F94 #83941F
analogous
#1F4894 #301F94 #6A1F94
triadic
#301F94 #94301F #1F9430
tetradic
#301F94 #941F48 #83941F #1F946A
square
#301F94 #941F48 #83941F #1F946A
split-complementary
#301F94 #946A1F #48941F
monochromatic
#0F0A2F #201461 #301F94 #402AC7 #6653DB

Accessibility & contrast

On white

12.01
#301F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#301F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F94
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F94#FFFFFF#000000##FFFFFF
##301F941.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #301f94;
/* rgb */ color: rgb(48, 31, 148);
/* oklch */ color: oklch(35.4% 0.178 278.8);
Tailwind
colors: {
  custom: {
    50: '#775eb5',
    500: '#301f94',
    950: '#000000',
  },
}
SCSS
$custom: #301f94;
$custom-light: #775eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#301f94",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 248.718,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35354,
    "c": 0.17771,
    "h": 278.8
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#301F94
secondary
#AEBE51
accent
#E83FD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301F94

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

Preview Lab → · Contrast checker → · Palette generator →

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