#3031AC#3031AC

#3031AC is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.189 H 273.6°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#3031AC
RGBrgb(48, 49, 172)
HSLhsl(240, 56%, 43%)
HSVhsv(240, 72%, 67%)
CMYKcmyk(72.1%, 71.5%, 0%, 32.5%)
CIE-LABlab(28.91, 40.58, -65.36)
CIE-LCHlch(28.91, 76.93, 301.83°)
OKLaboklab(40.42% 0.0119 -0.189)
OKLCHoklch(40.42% 0.189 273.6)
XYZxyz(9.7611, 5.8026, 39.6273)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031AC #ACAB30
analogous
#306FAC #3031AC #6D30AC
triadic
#3031AC #AC3031 #31AC30
tetradic
#3031AC #AC306F #ACAB30 #30AC6D
square
#3031AC #AC306F #ACAB30 #30AC6D
split-complementary
#3031AC #AC6D30 #6FAC30
monochromatic
#15164C #23237C #3031AC #4C4DCD #7C7DDA

Accessibility & contrast

On white

9.72
#3031AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3031AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031AC
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031AC#FFFFFF#000000##FFFFFF
##3031AC1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3031ac;
/* rgb */ color: rgb(48, 49, 172);
/* oklch */ color: oklch(40.4% 0.189 273.6);
Tailwind
colors: {
  custom: {
    50: '#7b6ac6',
    500: '#3031ac',
    950: '#000000',
  },
}
SCSS
$custom: #3031ac;
$custom-light: #7b6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#3031ac",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 239.516,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40419,
    "c": 0.1894,
    "h": 273.6
  },
  "luminance": 0.05804
}

Semantic roles & 50–950 ramp

primary
#3031AC
secondary
#C3C275
accent
#DE48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3031AC

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

Preview Lab → · Contrast checker → · Palette generator →

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