#3031C1#3031C1

#3031C1 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.6% C 0.215 H 272.2°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#3031C1
RGBrgb(48, 49, 193)
HSLhsl(240, 60%, 47%)
HSVhsv(240, 75%, 76%)
CMYKcmyk(75.1%, 74.6%, 0%, 24.3%)
CIE-LABlab(31.05, 47.60, -74.30)
CIE-LCHlch(31.05, 88.24, 302.64°)
OKLaboklab(42.59% 0.0084 -0.215)
OKLCHoklch(42.59% 0.215 272.2)
XYZxyz(11.9396, 6.6740, 51.1007)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031C1 #C1C030
analogous
#307AC1 #3031C1 #7730C1
triadic
#3031C1 #C13031 #31C130
tetradic
#3031C1 #C1307A #C1C030 #30C177
square
#3031C1 #C1307A #C1C030 #30C177
split-complementary
#3031C1 #C17730 #7AC130
monochromatic
#18185F #242590 #3031C1 #5959D6 #8A8AE2

Accessibility & contrast

On white

8.99
#3031C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3031C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031C1
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031C1#FFFFFF#000000##FFFFFF
##3031C11.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C5
Deuteranopia (green-blind)
#0042BE
Tritanopia (blue-blind)
#005B77
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3031c1;
/* rgb */ color: rgb(48, 49, 193);
/* oklch */ color: oklch(42.6% 0.215 272.2);
Tailwind
colors: {
  custom: {
    50: '#806bd5',
    500: '#3031c1',
    950: '#000000',
  },
}
SCSS
$custom: #3031c1;
$custom-light: #806bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#3031c1",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 239.586,
    "s": 60.166,
    "l": 47.255
  },
  "oklch": {
    "l": 0.42587,
    "c": 0.21521,
    "h": 272.2
  },
  "luminance": 0.06675
}

Semantic roles & 50–950 ramp

primary
#3031C1
secondary
#CCCB81
accent
#E244E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3031C1

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

Preview Lab → · Contrast checker → · Palette generator →

#3031C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva