#3151A2#3151A2

#3151A2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.6% C 0.136 H 265.2°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#3151A2
RGBrgb(49, 81, 162)
HSLhsl(223, 54%, 41%)
HSVhsv(223, 70%, 64%)
CMYKcmyk(69.8%, 50%, 0%, 36.5%)
CIE-LABlab(36.26, 16.37, -47.38)
CIE-LCHlch(36.26, 50.13, 289.06°)
OKLaboklab(45.63% -0.0115 -0.1359)
OKLCHoklch(45.63% 0.136 265.2)
XYZxyz(10.7284, 9.1454, 35.3753)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151A2 #A28231
analogous
#318AA2 #3151A2 #4A31A2
triadic
#3151A2 #A23151 #51A231
tetradic
#3151A2 #A2318A #A28231 #31A24A
square
#3151A2 #A2318A #A28231 #31A24A
split-complementary
#3151A2 #A24A31 #8AA231
monochromatic
#152244 #233A73 #3151A2 #486CC8 #7792D6

Accessibility & contrast

On white

7.42
#3151A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#3151A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151A2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151A2#FFFFFF#000000##FFFFFF
##3151A21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3151a2;
/* rgb */ color: rgb(49, 81, 162);
/* oklch */ color: oklch(45.6% 0.136 265.2);
Tailwind
colors: {
  custom: {
    50: '#7781be',
    500: '#3151a2',
    950: '#000000',
  },
}
SCSS
$custom: #3151a2;
$custom-light: #7781be;
$custom-dark: #000000;
JSON
{
  "hex": "#3151a2",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 223.009,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4563,
    "c": 0.13642,
    "h": 265.2
  },
  "luminance": 0.09146
}

Semantic roles & 50–950 ramp

primary
#3151A2
secondary
#BEA871
accent
#B44BDD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3151A2

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

Preview Lab → · Contrast checker → · Palette generator →

#3151A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva