#3131B7#3131B7

#3131B7 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.6% C 0.203 H 273.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#3131B7
RGBrgb(49, 49, 183)
HSLhsl(240, 58%, 45%)
HSVhsv(240, 73%, 72%)
CMYKcmyk(73.2%, 73.2%, 0%, 28.2%)
CIE-LABlab(30.08, 44.38, -70.00)
CIE-LCHlch(30.08, 82.88, 302.38°)
OKLaboklab(41.6% 0.0113 -0.2025)
OKLCHoklch(41.6% 0.203 273.2)
XYZxyz(10.9093, 6.2674, 45.4254)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3131B7 #B7B731
analogous
#3174B7 #3131B7 #7431B7
triadic
#3131B7 #B73131 #31B731
tetradic
#3131B7 #B73174 #B7B731 #31B774
square
#3131B7 #B73174 #B7B731 #31B774
split-complementary
#3131B7 #B77431 #74B731
monochromatic
#171756 #242487 #3131B7 #5454D1 #8484DE

Accessibility & contrast

On white

9.32
#3131B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3131B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3131B7
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3131B7#FFFFFF#000000##FFFFFF
##3131B71.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBB
Deuteranopia (green-blind)
#0040B5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3131b7;
/* rgb */ color: rgb(49, 49, 183);
/* oklch */ color: oklch(41.6% 0.203 273.2);
Tailwind
colors: {
  custom: {
    50: '#7e6bce',
    500: '#3131b7',
    950: '#000000',
  },
}
SCSS
$custom: #3131b7;
$custom-light: #7e6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#3131b7",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 240,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41602,
    "c": 0.20284,
    "h": 273.2
  },
  "luminance": 0.06268
}

Semantic roles & 50–950 ramp

primary
#3131B7
secondary
#C8C87C
accent
#E147E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3131B7

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

Preview Lab → · Contrast checker → · Palette generator →

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