#301FB3#301FB3

#301FB3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.8% C 0.214 H 274.9°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#301FB3
RGBrgb(48, 31, 179)
HSLhsl(247, 70%, 41%)
HSVhsv(247, 83%, 70%)
CMYKcmyk(73.2%, 82.7%, 0%, 29.8%)
CIE-LABlab(26.34, 52.31, -73.81)
CIE-LCHlch(26.34, 90.46, 305.33°)
OKLaboklab(38.83% 0.0184 -0.2134)
OKLCHoklch(38.83% 0.214 274.9)
XYZxyz(9.8429, 4.8620, 43.0588)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301FB3 #A2B31F
analogous
#1F58B3 #301FB3 #7A1FB3
triadic
#301FB3 #B3301F #1FB330
tetradic
#301FB3 #B31F58 #A2B31F #1FB37A
square
#301FB3 #B31F58 #A2B31F #1FB37A
split-complementary
#301FB3 #B37A1F #58B31F
monochromatic
#140D4B #22167F #301FB3 #4733DC #7668E5

Accessibility & contrast

On white

10.65
#301FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#301FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301FB3
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301FB3#FFFFFF#000000##FFFFFF
##301FB31.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #301fb3;
/* rgb */ color: rgb(48, 31, 179);
/* oklch */ color: oklch(38.8% 0.214 274.9);
Tailwind
colors: {
  custom: {
    50: '#7e60cb',
    500: '#301fb3',
    950: '#000000',
  },
}
SCSS
$custom: #301fb3;
$custom-light: #7e60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#301fb3",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 246.892,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38833,
    "c": 0.21418,
    "h": 274.9
  },
  "luminance": 0.04863
}

Semantic roles & 50–950 ramp

primary
#301FB3
secondary
#BECA64
accent
#ED3BD9
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #301FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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