#3131B9#3131B9

#3131B9 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 41.8% C 0.205 H 273.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#3131B9
RGBrgb(49, 49, 185)
HSLhsl(240, 58%, 46%)
HSVhsv(240, 74%, 73%)
CMYKcmyk(73.5%, 73.5%, 0%, 27.5%)
CIE-LABlab(30.28, 45.05, -70.85)
CIE-LCHlch(30.28, 83.96, 302.45°)
OKLaboklab(41.81% 0.011 -0.205)
OKLCHoklch(41.81% 0.205 273.1)
XYZxyz(11.1190, 6.3512, 46.5295)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131B9 #B9B931
analogous
#3175B9 #3131B9 #7531B9
triadic
#3131B9 #B93131 #31B931
tetradic
#3131B9 #B93175 #B9B931 #31B975
square
#3131B9 #B93175 #B9B931 #31B975
split-complementary
#3131B9 #B97531 #75B931
monochromatic
#171758 #242489 #3131B9 #5555D2 #8686DF

Accessibility & contrast

On white

9.25
#3131B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#3131B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131B9
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131B9#FFFFFF#000000##FFFFFF
##3131B91.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBD
Deuteranopia (green-blind)
#0041B7
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3131b9;
/* rgb */ color: rgb(49, 49, 185);
/* oklch */ color: oklch(41.8% 0.205 273.1);
Tailwind
colors: {
  custom: {
    50: '#7e6bcf',
    500: '#3131b9',
    950: '#000000',
  },
}
SCSS
$custom: #3131b9;
$custom-light: #7e6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3131b9",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 240,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.41809,
    "c": 0.20528,
    "h": 273.1
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#3131B9
secondary
#C8C87D
accent
#E146E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3131B9

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

Preview Lab → · Contrast checker → · Palette generator →

#3131B9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva