#301F90#301F90

#301F90 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.173 H 279.4°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#301F90
RGBrgb(48, 31, 144)
HSLhsl(249, 65%, 34%)
HSVhsv(249, 78%, 56%)
CMYKcmyk(66.7%, 78.5%, 0%, 43.5%)
CIE-LABlab(22.38, 41.55, -59.05)
CIE-LCHlch(22.38, 72.20, 305.13°)
OKLaboklab(34.92% 0.0282 -0.1705)
OKLCHoklch(34.92% 0.173 279.4)
XYZxyz(6.7413, 3.6214, 26.7239)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F90 #7F901F
analogous
#1F4690 #301F90 #691F90
triadic
#301F90 #90301F #1F9030
tetradic
#301F90 #901F46 #7F901F #1F9069
square
#301F90 #901F46 #7F901F #1F9069
split-complementary
#301F90 #90691F #46901F
monochromatic
#0E092B #1F145E #301F90 #412AC2 #6550D9

Accessibility & contrast

On white

12.18
#301F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#301F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F90
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F90#FFFFFF#000000##FFFFFF
##301F901.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301f90;
/* rgb */ color: rgb(48, 31, 144);
/* oklch */ color: oklch(34.9% 0.173 279.4);
Tailwind
colors: {
  custom: {
    50: '#765eb2',
    500: '#301f90',
    950: '#000000',
  },
}
SCSS
$custom: #301f90;
$custom-light: #765eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#301f90",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 249.027,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3492,
    "c": 0.17281,
    "h": 279.4
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#301F90
secondary
#ACBC4E
accent
#E840CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301F90

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

Preview Lab → · Contrast checker → · Palette generator →

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