#3031CF#3031CF

#3031CF is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.1% C 0.232 H 271.4°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#3031CF
RGBrgb(48, 49, 207)
HSLhsl(240, 62%, 50%)
HSVhsv(240, 77%, 81%)
CMYKcmyk(76.8%, 76.3%, 0%, 18.8%)
CIE-LABlab(32.54, 52.13, -80.02)
CIE-LCHlch(32.54, 95.50, 303.08°)
OKLaboklab(44.08% 0.0059 -0.2317)
OKLCHoklch(44.08% 0.232 271.4)
XYZxyz(13.5759, 7.3285, 59.7184)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031CF #CFCE30
analogous
#3080CF #3031CF #7F30CF
triadic
#3031CF #CF3031 #31CF30
tetradic
#3031CF #CF3080 #CFCE30 #30CF7F
square
#3031CF #CF3080 #CFCE30 #30CF7F
split-complementary
#3031CF #CF7F30 #80CF30
monochromatic
#19196C #24259D #3031CF #6262DB #9394E6

Accessibility & contrast

On white

8.52
#3031CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3031CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031CF
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031CF#FFFFFF#000000##FFFFFF
##3031CF1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D3
Deuteranopia (green-blind)
#0044CC
Tritanopia (blue-blind)
#00617F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3031cf;
/* rgb */ color: rgb(48, 49, 207);
/* oklch */ color: oklch(44.1% 0.232 271.4);
Tailwind
colors: {
  custom: {
    50: '#836cdf',
    500: '#3031cf',
    950: '#000000',
  },
}
SCSS
$custom: #3031cf;
$custom-light: #836cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#3031cf",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 239.623,
    "s": 62.353,
    "l": 50
  },
  "oklch": {
    "l": 0.4408,
    "c": 0.23173,
    "h": 271.4
  },
  "luminance": 0.0733
}

Semantic roles & 50–950 ramp

primary
#3031CF
secondary
#D1D18A
accent
#E442E5
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3031CF

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

Preview Lab → · Contrast checker → · Palette generator →

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