#3127BD#3127BD

#3127BD is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.9% C 0.219 H 273.8°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#3127BD
RGBrgb(49, 39, 189)
HSLhsl(244, 66%, 45%)
HSVhsv(244, 79%, 74%)
CMYKcmyk(74.1%, 79.4%, 0%, 25.9%)
CIE-LABlab(28.84, 51.66, -75.59)
CIE-LCHlch(28.84, 91.56, 304.35°)
OKLaboklab(40.92% 0.0144 -0.2187)
OKLCHoklch(40.92% 0.219 273.8)
XYZxyz(11.1744, 5.7770, 48.6604)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3127BD #B3BD27
analogous
#2768BD #3127BD #7C27BD
triadic
#3127BD #BD3127 #27BD31
tetradic
#3127BD #BD2768 #B3BD27 #27BD7C
square
#3127BD #BD2768 #B3BD27 #27BD7C
split-complementary
#3127BD #BD7C27 #68BD27
monochromatic
#171258 #241D8A #3127BD #5248D9 #827BE4

Accessibility & contrast

On white

9.74
#3127BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3127BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3127BD
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3127BD#FFFFFF#000000##FFFFFF
##3127BD1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BC1
Deuteranopia (green-blind)
#003DBA
Tritanopia (blue-blind)
#005572
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3127bd;
/* rgb */ color: rgb(49, 39, 189);
/* oklch */ color: oklch(40.9% 0.219 273.8);
Tailwind
colors: {
  custom: {
    50: '#8065d2',
    500: '#3127bd',
    950: '#000000',
  },
}
SCSS
$custom: #3127bd;
$custom-light: #8065d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3127bd",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 244,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.40922,
    "c": 0.21915,
    "h": 273.8
  },
  "luminance": 0.05778
}

Semantic roles & 50–950 ramp

primary
#3127BD
secondary
#C6CC74
accent
#E93FDD
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #3127BD

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

Preview Lab → · Contrast checker → · Palette generator →

#3127BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva