#3031B2#3031B2

#3031B2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.0% C 0.197 H 273.2°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#3031B2
RGBrgb(48, 49, 178)
HSLhsl(240, 58%, 44%)
HSVhsv(240, 73%, 70%)
CMYKcmyk(73%, 72.5%, 0%, 30.2%)
CIE-LABlab(29.51, 42.61, -67.96)
CIE-LCHlch(29.51, 80.22, 302.08°)
OKLaboklab(41.03% 0.011 -0.1966)
OKLCHoklch(41.03% 0.197 273.2)
XYZxyz(10.3504, 6.0383, 42.7309)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031B2 #B2B130
analogous
#3072B2 #3031B2 #7030B2
triadic
#3031B2 #B23031 #31B230
tetradic
#3031B2 #B23072 #B2B130 #30B270
square
#3031B2 #B23072 #B2B130 #30B270
split-complementary
#3031B2 #B27030 #72B230
monochromatic
#161652 #232482 #3031B2 #5051D0 #8080DD

Accessibility & contrast

On white

9.51
#3031B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3031B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031B2
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031B2#FFFFFF#000000##FFFFFF
##3031B21.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3031b2;
/* rgb */ color: rgb(48, 49, 178);
/* oklch */ color: oklch(41.0% 0.197 273.2);
Tailwind
colors: {
  custom: {
    50: '#7c6aca',
    500: '#3031b2',
    950: '#000000',
  },
}
SCSS
$custom: #3031b2;
$custom-light: #7c6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3031b2",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 239.538,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41029,
    "c": 0.19691,
    "h": 273.2
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#3031B2
secondary
#C6C578
accent
#E047E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3031B2

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

Preview Lab → · Contrast checker → · Palette generator →

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