#3031B9#3031B9

#3031B9 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.8% C 0.206 H 272.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#3031B9
RGBrgb(48, 49, 185)
HSLhsl(240, 59%, 46%)
HSVhsv(240, 74%, 73%)
CMYKcmyk(74.1%, 73.5%, 0%, 27.5%)
CIE-LABlab(30.22, 44.95, -70.95)
CIE-LCHlch(30.22, 83.99, 302.36°)
OKLaboklab(41.75% 0.0098 -0.2053)
OKLCHoklch(41.75% 0.206 272.7)
XYZxyz(11.0713, 6.3266, 46.5272)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031B9 #B9B830
analogous
#3075B9 #3031B9 #7330B9
triadic
#3031B9 #B93031 #31B930
tetradic
#3031B9 #B93075 #B9B830 #30B973
square
#3031B9 #B93075 #B9B830 #30B973
split-complementary
#3031B9 #B97330 #75B930
monochromatic
#171758 #232488 #3031B9 #5455D3 #8485DF

Accessibility & contrast

On white

9.27
#3031B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#3031B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031B9
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031B9#FFFFFF#000000##FFFFFF
##3031B91.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBD
Deuteranopia (green-blind)
#0040B7
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3031b9;
/* rgb */ color: rgb(48, 49, 185);
/* oklch */ color: oklch(41.8% 0.206 272.7);
Tailwind
colors: {
  custom: {
    50: '#7e6bcf',
    500: '#3031b9',
    950: '#000000',
  },
}
SCSS
$custom: #3031b9;
$custom-light: #7e6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3031b9",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 239.562,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4175,
    "c": 0.20553,
    "h": 272.7
  },
  "luminance": 0.06328
}

Semantic roles & 50–950 ramp

primary
#3031B9
secondary
#C9C87C
accent
#E146E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3031B9

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

Preview Lab → · Contrast checker → · Palette generator →

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