#3031AA#3031AA

#3031AA is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.187 H 273.7°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#3031AA
RGBrgb(48, 49, 170)
HSLhsl(240, 56%, 43%)
HSVhsv(240, 72%, 67%)
CMYKcmyk(71.8%, 71.2%, 0%, 33.3%)
CIE-LABlab(28.71, 39.89, -64.49)
CIE-LCHlch(28.71, 75.83, 301.74°)
OKLaboklab(40.22% 0.0122 -0.1865)
OKLCHoklch(40.22% 0.187 273.7)
XYZxyz(9.5705, 5.7263, 38.6233)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3031AA #AAA930
analogous
#306EAA #3031AA #6C30AA
triadic
#3031AA #AA3031 #31AA30
tetradic
#3031AA #AA306E #AAA930 #30AA6C
square
#3031AA #AA306E #AAA930 #30AA6C
split-complementary
#3031AA #AA6C30 #6EAA30
monochromatic
#15154B #23237A #3031AA #4B4CCC #7B7CDA

Accessibility & contrast

On white

9.79
#3031AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#3031AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3031AA#FFFFFF#000000##FFFFFF
##3031AA1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3031aa;
/* rgb */ color: rgb(48, 49, 170);
/* oklch */ color: oklch(40.2% 0.187 273.7);
Tailwind
colors: {
  custom: {
    50: '#7b6ac4',
    500: '#3031aa',
    950: '#000000',
  },
}
SCSS
$custom: #3031aa;
$custom-light: #7b6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#3031aa",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 239.508,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40218,
    "c": 0.18687,
    "h": 273.7
  },
  "luminance": 0.05727
}

Semantic roles & 50–950 ramp

primary
#3031AA
secondary
#C2C174
accent
#DE49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3031AA

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

Preview Lab → · Contrast checker → · Palette generator →

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