#3031AE#3031AE

#3031AE is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.6% C 0.192 H 273.5°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#3031AE
RGBrgb(48, 49, 174)
HSLhsl(240, 57%, 44%)
HSVhsv(240, 72%, 68%)
CMYKcmyk(72.4%, 71.8%, 0%, 31.8%)
CIE-LABlab(29.11, 41.26, -66.24)
CIE-LCHlch(29.11, 78.03, 301.92°)
OKLaboklab(40.62% 0.0116 -0.1916)
OKLCHoklch(40.62% 0.192 273.5)
XYZxyz(9.9547, 5.8800, 40.6465)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031AE #AEAD30
analogous
#3070AE #3031AE #6E30AE
triadic
#3031AE #AE3031 #31AE30
tetradic
#3031AE #AE3070 #AEAD30 #30AE6E
square
#3031AE #AE3070 #AEAD30 #30AE6E
split-complementary
#3031AE #AE6E30 #70AE30
monochromatic
#16164E #23237E #3031AE #4D4ECE #7D7EDB

Accessibility & contrast

On white

9.65
#3031AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3031AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3031AE
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031AE#FFFFFF#000000##FFFFFF
##3031AE1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#003FAC
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3031ae;
/* rgb */ color: rgb(48, 49, 174);
/* oklch */ color: oklch(40.6% 0.192 273.5);
Tailwind
colors: {
  custom: {
    50: '#7c6ac7',
    500: '#3031ae',
    950: '#000000',
  },
}
SCSS
$custom: #3031ae;
$custom-light: #7c6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#3031ae",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 239.524,
    "s": 56.757,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40621,
    "c": 0.19192,
    "h": 273.5
  },
  "luminance": 0.05881
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3031AE

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

Preview Lab → · Contrast checker → · Palette generator →

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