#3031B8#3031B8

#3031B8 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.6% C 0.204 H 272.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#3031B8
RGBrgb(48, 49, 184)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 72%)
CMYKcmyk(73.9%, 73.4%, 0%, 27.8%)
CIE-LABlab(30.12, 44.62, -70.53)
CIE-LCHlch(30.12, 83.46, 302.32°)
OKLaboklab(41.65% 0.01 -0.2041)
OKLCHoklch(41.65% 0.204 272.8)
XYZxyz(10.9661, 6.2846, 45.9732)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031B8 #B8B730
analogous
#3075B8 #3031B8 #7330B8
triadic
#3031B8 #B83031 #31B830
tetradic
#3031B8 #B83075 #B8B730 #30B873
square
#3031B8 #B83075 #B8B730 #30B873
split-complementary
#3031B8 #B87330 #75B830
monochromatic
#171757 #232487 #3031B8 #5354D2 #8484DF

Accessibility & contrast

On white

9.30
#3031B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#3031B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031B8
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031B8#FFFFFF#000000##FFFFFF
##3031B81.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3031b8;
/* rgb */ color: rgb(48, 49, 184);
/* oklch */ color: oklch(41.6% 0.204 272.8);
Tailwind
colors: {
  custom: {
    50: '#7e6bcf',
    500: '#3031b8',
    950: '#000000',
  },
}
SCSS
$custom: #3031b8;
$custom-light: #7e6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3031b8",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 239.559,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41647,
    "c": 0.20431,
    "h": 272.8
  },
  "luminance": 0.06286
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3031B8

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

Preview Lab → · Contrast checker → · Palette generator →

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