#3031BD#3031BD

#3031BD is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.2% C 0.210 H 272.5°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#3031BD
RGBrgb(48, 49, 189)
HSLhsl(240, 59%, 46%)
HSVhsv(240, 75%, 74%)
CMYKcmyk(74.6%, 74.1%, 0%, 25.9%)
CIE-LABlab(30.64, 46.28, -72.63)
CIE-LCHlch(30.64, 86.12, 302.51°)
OKLaboklab(42.17% 0.0091 -0.2102)
OKLCHoklch(42.17% 0.21 272.5)
XYZxyz(11.4995, 6.4979, 48.7824)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031BD #BDBC30
analogous
#3078BD #3031BD #7530BD
triadic
#3031BD #BD3031 #31BD30
tetradic
#3031BD #BD3078 #BDBC30 #30BD75
square
#3031BD #BD3078 #BDBC30 #30BD75
split-complementary
#3031BD #BD7530 #78BD30
monochromatic
#17185B #24248C #3031BD #5657D4 #8788E0

Accessibility & contrast

On white

9.13
#3031BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#3031BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031BD
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031BD#FFFFFF#000000##FFFFFF
##3031BD1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#0041BB
Tritanopia (blue-blind)
#005A74
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3031bd;
/* rgb */ color: rgb(48, 49, 189);
/* oklch */ color: oklch(42.2% 0.210 272.5);
Tailwind
colors: {
  custom: {
    50: '#7f6bd2',
    500: '#3031bd',
    950: '#000000',
  },
}
SCSS
$custom: #3031bd;
$custom-light: #7f6bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#3031bd",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 239.574,
    "s": 59.494,
    "l": 46.471
  },
  "oklch": {
    "l": 0.42167,
    "c": 0.2104,
    "h": 272.5
  },
  "luminance": 0.06499
}

Semantic roles & 50–950 ramp

primary
#3031BD
secondary
#CACA7F
accent
#E245E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3031BD

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

Preview Lab → · Contrast checker → · Palette generator →

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