#301FC2#301FC2

#301FC2 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.6% C 0.231 H 273.5°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#301FC2
RGBrgb(48, 31, 194)
HSLhsl(246, 72%, 44%)
HSVhsv(246, 84%, 76%)
CMYKcmyk(75.3%, 84%, 0%, 23.9%)
CIE-LABlab(28.12, 56.72, -79.75)
CIE-LCHlch(28.12, 97.86, 305.42°)
OKLaboklab(40.57% 0.0143 -0.2306)
OKLCHoklch(40.57% 0.231 273.5)
XYZxyz(11.4433, 5.5022, 51.4874)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301FC2 #B1C21F
analogous
#1F5FC2 #301FC2 #821FC2
triadic
#301FC2 #C2301F #1FC230
tetradic
#301FC2 #C21F5F #B1C21F #1FC282
square
#301FC2 #C21F5F #B1C21F #1FC282
split-complementary
#301FC2 #C2821F #5FC21F
monochromatic
#160E58 #23178D #301FC2 #4F3EE0 #7F73E9

Accessibility & contrast

On white

10.00
#301FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#301FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301FC2
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301FC2#FFFFFF#000000##FFFFFF
##301FC21.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#003BBF
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #301fc2;
/* rgb */ color: rgb(48, 31, 194);
/* oklch */ color: oklch(40.6% 0.231 273.5);
Tailwind
colors: {
  custom: {
    50: '#8261d6',
    500: '#301fc2',
    950: '#000000',
  },
}
SCSS
$custom: #301fc2;
$custom-light: #8261d6;
$custom-dark: #000000;
JSON
{
  "hex": "#301fc2",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 194
  },
  "hsl": {
    "h": 246.258,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40572,
    "c": 0.23104,
    "h": 273.5
  },
  "luminance": 0.05503
}

Semantic roles & 50–950 ramp

primary
#301FC2
secondary
#C5CF6D
accent
#EF39DC
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0515
muted
#7D7A83

Preview Lab

Preview with #301FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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