#3031C7#3031C7

#3031C7 is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.2% C 0.222 H 271.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#3031C7
RGBrgb(48, 49, 199)
HSLhsl(240, 61%, 48%)
HSVhsv(240, 76%, 78%)
CMYKcmyk(75.9%, 75.4%, 0%, 22%)
CIE-LABlab(31.69, 49.55, -76.77)
CIE-LCHlch(31.69, 91.37, 302.84°)
OKLaboklab(43.22% 0.0073 -0.2222)
OKLCHoklch(43.22% 0.222 271.9)
XYZxyz(12.6226, 6.9472, 54.6975)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031C7 #C7C630
analogous
#307CC7 #3031C7 #7A30C7
triadic
#3031C7 #C73031 #31C730
tetradic
#3031C7 #C7307C #C7C630 #30C77A
square
#3031C7 #C7307C #C7C630 #30C77A
split-complementary
#3031C7 #C77A30 #7CC730
monochromatic
#181964 #242596 #3031C7 #5C5DD8 #8E8EE4

Accessibility & contrast

On white

8.79
#3031C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#3031C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031C7
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031C7#FFFFFF#000000##FFFFFF
##3031C71.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CB
Deuteranopia (green-blind)
#0043C4
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3031c7;
/* rgb */ color: rgb(48, 49, 199);
/* oklch */ color: oklch(43.2% 0.222 271.9);
Tailwind
colors: {
  custom: {
    50: '#816bd9',
    500: '#3031c7',
    950: '#000000',
  },
}
SCSS
$custom: #3031c7;
$custom-light: #816bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#3031c7",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 239.603,
    "s": 61.134,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43223,
    "c": 0.22236,
    "h": 271.9
  },
  "luminance": 0.06949
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3031C7

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

Preview Lab → · Contrast checker → · Palette generator →

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