#3031B5#3031B5

#3031B5 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.3% C 0.201 H 273.0°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#3031B5
RGBrgb(48, 49, 181)
HSLhsl(240, 58%, 45%)
HSVhsv(240, 73%, 71%)
CMYKcmyk(73.5%, 72.9%, 0%, 29%)
CIE-LABlab(29.81, 43.62, -69.25)
CIE-LCHlch(29.81, 81.84, 302.21°)
OKLaboklab(41.34% 0.0105 -0.2003)
OKLCHoklch(41.34% 0.201 273)
XYZxyz(10.6549, 6.1601, 44.3346)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031B5 #B5B430
analogous
#3073B5 #3031B5 #7230B5
triadic
#3031B5 #B53031 #31B530
tetradic
#3031B5 #B53073 #B5B430 #30B572
square
#3031B5 #B53073 #B5B430 #30B572
split-complementary
#3031B5 #B57230 #73B530
monochromatic
#161754 #232485 #3031B5 #5152D1 #8282DE

Accessibility & contrast

On white

9.41
#3031B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3031B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031B5
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031B5#FFFFFF#000000##FFFFFF
##3031B51.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3031b5;
/* rgb */ color: rgb(48, 49, 181);
/* oklch */ color: oklch(41.3% 0.201 273.0);
Tailwind
colors: {
  custom: {
    50: '#7d6acc',
    500: '#3031b5',
    950: '#000000',
  },
}
SCSS
$custom: #3031b5;
$custom-light: #7d6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#3031b5",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 239.549,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41337,
    "c": 0.20062,
    "h": 273
  },
  "luminance": 0.06161
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3031B5

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

Preview Lab → · Contrast checker → · Palette generator →

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