#3127A7#3127A7

#3127A7 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.193 H 275.8°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#3127A7
RGBrgb(49, 39, 167)
HSLhsl(245, 62%, 40%)
HSVhsv(245, 77%, 65%)
CMYKcmyk(70.7%, 76.6%, 0%, 34.5%)
CIE-LABlab(26.43, 44.72, -66.44)
CIE-LCHlch(26.43, 80.09, 303.94°)
OKLaboklab(38.52% 0.0195 -0.1921)
OKLCHoklch(38.52% 0.193 275.8)
XYZxyz(8.9649, 4.8932, 37.0238)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3127A7 #9DA727
analogous
#275DA7 #3127A7 #7127A7
triadic
#3127A7 #A73127 #27A731
tetradic
#3127A7 #A7275D #9DA727 #27A771
square
#3127A7 #A7275D #9DA727 #27A771
split-complementary
#3127A7 #A77127 #5DA727
monochromatic
#141044 #221B75 #3127A7 #463AD1 #756CDD

Accessibility & contrast

On white

10.61
#3127A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3127A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3127A7
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3127A7#FFFFFF#000000##FFFFFF
##3127A71.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3127a7;
/* rgb */ color: rgb(49, 39, 167);
/* oklch */ color: oklch(38.5% 0.193 275.8);
Tailwind
colors: {
  custom: {
    50: '#7b64c2',
    500: '#3127a7',
    950: '#000000',
  },
}
SCSS
$custom: #3127a7;
$custom-light: #7b64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3127a7",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 244.688,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.3852,
    "c": 0.19307,
    "h": 275.8
  },
  "luminance": 0.04894
}

Semantic roles & 50–950 ramp

primary
#3127A7
secondary
#BCC367
accent
#E543D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #3127A7

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

Preview Lab → · Contrast checker → · Palette generator →

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