#3031AD#3031AD

#3031AD is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.191 H 273.5°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#3031AD
RGBrgb(48, 49, 173)
HSLhsl(240, 57%, 43%)
HSVhsv(240, 72%, 68%)
CMYKcmyk(72.3%, 71.7%, 0%, 32.2%)
CIE-LABlab(29.01, 40.92, -65.80)
CIE-LCHlch(29.01, 77.48, 301.87°)
OKLaboklab(40.52% 0.0117 -0.1903)
OKLCHoklch(40.52% 0.191 273.5)
XYZxyz(9.8575, 5.8412, 40.1350)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031AD #ADAC30
analogous
#306FAD #3031AD #6D30AD
triadic
#3031AD #AD3031 #31AD30
tetradic
#3031AD #AD306F #ADAC30 #30AD6D
square
#3031AD #AD306F #ADAC30 #30AD6D
split-complementary
#3031AD #AD6D30 #6FAD30
monochromatic
#15164D #23237D #3031AD #4D4ECE #7D7DDB

Accessibility & contrast

On white

9.68
#3031AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3031AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031AD
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031AD#FFFFFF#000000##FFFFFF
##3031AD1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#003EAB
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3031ad;
/* rgb */ color: rgb(48, 49, 173);
/* oklch */ color: oklch(40.5% 0.191 273.5);
Tailwind
colors: {
  custom: {
    50: '#7b6ac7',
    500: '#3031ad',
    950: '#000000',
  },
}
SCSS
$custom: #3031ad;
$custom-light: #7b6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#3031ad",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 239.52,
    "s": 56.561,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4052,
    "c": 0.19066,
    "h": 273.5
  },
  "luminance": 0.05842
}

Semantic roles & 50–950 ramp

primary
#3031AD
secondary
#C3C375
accent
#DF48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3031AD

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

Preview Lab → · Contrast checker → · Palette generator →

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