#3031B3#3031B3

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

Color values

HEX#3031B3
RGBrgb(48, 49, 179)
HSLhsl(240, 58%, 45%)
HSVhsv(240, 73%, 70%)
CMYKcmyk(73.2%, 72.6%, 0%, 29.8%)
CIE-LABlab(29.61, 42.95, -68.39)
CIE-LCHlch(29.61, 80.76, 302.13°)
OKLaboklab(41.13% 0.0108 -0.1979)
OKLCHoklch(41.13% 0.198 273.1)
XYZxyz(10.4512, 6.0786, 43.2616)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031B3 #B3B230
analogous
#3073B3 #3031B3 #7130B3
triadic
#3031B3 #B33031 #31B330
tetradic
#3031B3 #B33073 #B3B230 #30B371
square
#3031B3 #B33073 #B3B230 #30B371
split-complementary
#3031B3 #B37130 #73B330
monochromatic
#161752 #232483 #3031B3 #5051D0 #8081DD

Accessibility & contrast

On white

9.48
#3031B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3031B3
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031B3#FFFFFF#000000##FFFFFF
##3031B31.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3031b3;
/* rgb */ color: rgb(48, 49, 179);
/* oklch */ color: oklch(41.1% 0.198 273.1);
Tailwind
colors: {
  custom: {
    50: '#7d6acb',
    500: '#3031b3',
    950: '#000000',
  },
}
SCSS
$custom: #3031b3;
$custom-light: #7d6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#3031b3",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 239.542,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41131,
    "c": 0.19815,
    "h": 273.1
  },
  "luminance": 0.0608
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3031B3

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

Preview Lab → · Contrast checker → · Palette generator →

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