#3031AF#3031AF

#3031AF is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.193 H 273.4°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#3031AF
RGBrgb(48, 49, 175)
HSLhsl(240, 57%, 44%)
HSVhsv(240, 73%, 69%)
CMYKcmyk(72.6%, 72%, 0%, 31.4%)
CIE-LABlab(29.21, 41.60, -66.67)
CIE-LCHlch(29.21, 78.58, 301.96°)
OKLaboklab(40.72% 0.0114 -0.1928)
OKLCHoklch(40.72% 0.193 273.4)
XYZxyz(10.0525, 5.9191, 41.1619)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031AF #AFAE30
analogous
#3070AF #3031AF #6E30AF
triadic
#3031AF #AF3031 #31AF30
tetradic
#3031AF #AF3070 #AFAE30 #30AF6E
square
#3031AF #AF3070 #AFAE30 #30AF6E
split-complementary
#3031AF #AF6E30 #70AF30
monochromatic
#16164F #23247F #3031AF #4E4FCE #7E7FDC

Accessibility & contrast

On white

9.62
#3031AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3031AF
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3031AF#FFFFFF#000000##FFFFFF
##3031AF1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#003FAD
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3031af;
/* rgb */ color: rgb(48, 49, 175);
/* oklch */ color: oklch(40.7% 0.193 273.4);
Tailwind
colors: {
  custom: {
    50: '#7c6ac8',
    500: '#3031af',
    950: '#000000',
  },
}
SCSS
$custom: #3031af;
$custom-light: #7c6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#3031af",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 239.528,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40723,
    "c": 0.19317,
    "h": 273.4
  },
  "luminance": 0.0592
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3031AF

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

Preview Lab → · Contrast checker → · Palette generator →

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