#3031B6#3031B6

#3031B6 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.4% C 0.202 H 272.9°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#3031B6
RGBrgb(48, 49, 182)
HSLhsl(240, 58%, 45%)
HSVhsv(240, 74%, 71%)
CMYKcmyk(73.6%, 73.1%, 0%, 28.6%)
CIE-LABlab(29.91, 43.95, -69.68)
CIE-LCHlch(29.91, 82.38, 302.24°)
OKLaboklab(41.44% 0.0103 -0.2016)
OKLCHoklch(41.44% 0.202 272.9)
XYZxyz(10.7579, 6.2013, 44.8769)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031B6 #B6B530
analogous
#3074B6 #3031B6 #7230B6
triadic
#3031B6 #B63031 #31B630
tetradic
#3031B6 #B63074 #B6B530 #30B672
square
#3031B6 #B63074 #B6B530 #30B672
split-complementary
#3031B6 #B67230 #74B630
monochromatic
#161755 #232486 #3031B6 #5253D1 #8283DE

Accessibility & contrast

On white

9.37
#3031B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#3031B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031B6
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031B6#FFFFFF#000000##FFFFFF
##3031B61.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0040B4
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3031b6;
/* rgb */ color: rgb(48, 49, 182);
/* oklch */ color: oklch(41.4% 0.202 272.9);
Tailwind
colors: {
  custom: {
    50: '#7d6bcd',
    500: '#3031b6',
    950: '#000000',
  },
}
SCSS
$custom: #3031b6;
$custom-light: #7d6bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#3031b6",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 239.552,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4144,
    "c": 0.20186,
    "h": 272.9
  },
  "luminance": 0.06202
}

Semantic roles & 50–950 ramp

primary
#3031B6
secondary
#C7C77B
accent
#E046E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3031B6

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

Preview Lab → · Contrast checker → · Palette generator →

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