#3031C5#3031C5

#3031C5 is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.0% C 0.220 H 272.0°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#3031C5
RGBrgb(48, 49, 197)
HSLhsl(240, 61%, 48%)
HSVhsv(240, 76%, 77%)
CMYKcmyk(75.6%, 75.1%, 0%, 22.7%)
CIE-LABlab(31.47, 48.90, -75.95)
CIE-LCHlch(31.47, 90.33, 302.78°)
OKLaboklab(43.01% 0.0077 -0.2198)
OKLCHoklch(43.01% 0.22 272)
XYZxyz(12.3919, 6.8549, 53.4825)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031C5 #C5C430
analogous
#307CC5 #3031C5 #7930C5
triadic
#3031C5 #C53031 #31C530
tetradic
#3031C5 #C5307C #C5C430 #30C579
square
#3031C5 #C5307C #C5C430 #30C579
split-complementary
#3031C5 #C57930 #7CC530
monochromatic
#181963 #242594 #3031C5 #5B5CD7 #8C8DE3

Accessibility & contrast

On white

8.86
#3031C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#3031C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031C5
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031C5#FFFFFF#000000##FFFFFF
##3031C51.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C9
Deuteranopia (green-blind)
#0043C2
Tritanopia (blue-blind)
#005D79
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3031c5;
/* rgb */ color: rgb(48, 49, 197);
/* oklch */ color: oklch(43.0% 0.220 272.0);
Tailwind
colors: {
  custom: {
    50: '#816bd8',
    500: '#3031c5',
    950: '#000000',
  },
}
SCSS
$custom: #3031c5;
$custom-light: #816bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#3031c5",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 239.597,
    "s": 60.816,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4301,
    "c": 0.21998,
    "h": 272
  },
  "luminance": 0.06856
}

Semantic roles & 50–950 ramp

primary
#3031C5
secondary
#CDCD84
accent
#E344E4
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #3031C5

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

Preview Lab → · Contrast checker → · Palette generator →

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