#3031B4#3031B4

#3031B4 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.2% C 0.199 H 273.1°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#3031B4
RGBrgb(48, 49, 180)
HSLhsl(240, 58%, 45%)
HSVhsv(240, 73%, 71%)
CMYKcmyk(73.3%, 72.8%, 0%, 29.4%)
CIE-LABlab(29.71, 43.28, -68.82)
CIE-LCHlch(29.71, 81.30, 302.17°)
OKLaboklab(41.23% 0.0106 -0.1991)
OKLCHoklch(41.23% 0.199 273.1)
XYZxyz(10.5527, 6.1192, 43.7962)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031B4 #B4B330
analogous
#3073B4 #3031B4 #7130B4
triadic
#3031B4 #B43031 #31B430
tetradic
#3031B4 #B43073 #B4B330 #30B471
square
#3031B4 #B43073 #B4B330 #30B471
split-complementary
#3031B4 #B47130 #73B430
monochromatic
#161753 #232484 #3031B4 #5152D1 #8182DD

Accessibility & contrast

On white

9.44
#3031B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3031B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031B4
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031B4#FFFFFF#000000##FFFFFF
##3031B41.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#0040B2
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3031b4;
/* rgb */ color: rgb(48, 49, 180);
/* oklch */ color: oklch(41.2% 0.199 273.1);
Tailwind
colors: {
  custom: {
    50: '#7d6acc',
    500: '#3031b4',
    950: '#000000',
  },
}
SCSS
$custom: #3031b4;
$custom-light: #7d6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#3031b4",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 239.545,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41234,
    "c": 0.19939,
    "h": 273.1
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3031B4

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

Preview Lab → · Contrast checker → · Palette generator →

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