#3127AC#3127AC

#3127AC is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.1% C 0.199 H 275.3°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#3127AC
RGBrgb(49, 39, 172)
HSLhsl(245, 63%, 41%)
HSVhsv(245, 77%, 67%)
CMYKcmyk(71.5%, 77.3%, 0%, 32.5%)
CIE-LABlab(26.97, 46.32, -68.57)
CIE-LCHlch(26.97, 82.75, 304.04°)
OKLaboklab(39.06% 0.0184 -0.1983)
OKLCHoklch(39.06% 0.199 275.3)
XYZxyz(9.4361, 5.0817, 39.5053)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3127AC #A2AC27
analogous
#2760AC #3127AC #7427AC
triadic
#3127AC #AC3127 #27AC31
tetradic
#3127AC #AC2760 #A2AC27 #27AC74
square
#3127AC #AC2760 #A2AC27 #27AC74
split-complementary
#3127AC #AC7427 #60AC27
monochromatic
#151048 #231C7A #3127AC #483DD3 #776FDE

Accessibility & contrast

On white

10.41
#3127AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3127AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3127AC
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3127AC#FFFFFF#000000##FFFFFF
##3127AC1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B0
Deuteranopia (green-blind)
#003AAA
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3127ac;
/* rgb */ color: rgb(49, 39, 172);
/* oklch */ color: oklch(39.1% 0.199 275.3);
Tailwind
colors: {
  custom: {
    50: '#7c64c6',
    500: '#3127ac',
    950: '#000000',
  },
}
SCSS
$custom: #3127ac;
$custom-light: #7c64c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3127ac",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 244.511,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39058,
    "c": 0.19911,
    "h": 275.3
  },
  "luminance": 0.05083
}

Semantic roles & 50–950 ramp

primary
#3127AC
secondary
#BEC56A
accent
#E642DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3127AC

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

Preview Lab → · Contrast checker → · Palette generator →

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