#301FBB#301FBB

#301FBB is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.8% C 0.223 H 274.2°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#301FBB
RGBrgb(48, 31, 187)
HSLhsl(247, 72%, 43%)
HSVhsv(247, 83%, 73%)
CMYKcmyk(74.3%, 83.4%, 0%, 26.7%)
CIE-LABlab(27.28, 54.68, -77.00)
CIE-LCHlch(27.28, 94.44, 305.38°)
OKLaboklab(39.76% 0.0162 -0.2226)
OKLCHoklch(39.76% 0.223 274.2)
XYZxyz(10.6756, 5.1951, 47.4442)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301FBB #AABB1F
analogous
#1F5CBB #301FBB #7E1FBB
triadic
#301FBB #BB301F #1FBB30
tetradic
#301FBB #BB1F5C #AABB1F #1FBB7E
square
#301FBB #BB1F5C #AABB1F #1FBB7E
split-complementary
#301FBB #BB7E1F #5CBB1F
monochromatic
#150E52 #231687 #301FBB #4B39DE #7B6EE7

Accessibility & contrast

On white

10.30
#301FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#301FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301FBB
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301FBB#FFFFFF#000000##FFFFFF
##301FBB1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047BF
Deuteranopia (green-blind)
#0039B8
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #301fbb;
/* rgb */ color: rgb(48, 31, 187);
/* oklch */ color: oklch(39.8% 0.223 274.2);
Tailwind
colors: {
  custom: {
    50: '#8061d1',
    500: '#301fbb',
    950: '#000000',
  },
}
SCSS
$custom: #301fbb;
$custom-light: #8061d1;
$custom-dark: #000000;
JSON
{
  "hex": "#301fbb",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 187
  },
  "hsl": {
    "h": 246.538,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39757,
    "c": 0.22323,
    "h": 274.2
  },
  "luminance": 0.05196
}

Semantic roles & 50–950 ramp

primary
#301FBB
secondary
#C2CD69
accent
#EE3ADB
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #301FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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