#3127A8#3127A8

#3127A8 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.6% C 0.194 H 275.7°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#3127A8
RGBrgb(49, 39, 168)
HSLhsl(245, 62%, 41%)
HSVhsv(245, 77%, 66%)
CMYKcmyk(70.8%, 76.8%, 0%, 34.1%)
CIE-LABlab(26.54, 45.04, -66.87)
CIE-LCHlch(26.54, 80.62, 303.96°)
OKLaboklab(38.63% 0.0193 -0.1933)
OKLCHoklch(38.63% 0.194 275.7)
XYZxyz(9.0577, 4.9303, 37.5125)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3127A8 #9EA827
analogous
#275DA8 #3127A8 #7127A8
triadic
#3127A8 #A83127 #27A831
tetradic
#3127A8 #A8275D #9EA827 #27A871
square
#3127A8 #A8275D #9EA827 #27A871
split-complementary
#3127A8 #A87127 #5DA827
monochromatic
#141045 #231B76 #3127A8 #463BD1 #756CDD

Accessibility & contrast

On white

10.57
#3127A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3127A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3127A8
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3127A8#FFFFFF#000000##FFFFFF
##3127A81.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3127a8;
/* rgb */ color: rgb(49, 39, 168);
/* oklch */ color: oklch(38.6% 0.194 275.7);
Tailwind
colors: {
  custom: {
    50: '#7b64c3',
    500: '#3127a8',
    950: '#000000',
  },
}
SCSS
$custom: #3127a8;
$custom-light: #7b64c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3127a8",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 244.651,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38627,
    "c": 0.19429,
    "h": 275.7
  },
  "luminance": 0.04931
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3127A8

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

Preview Lab → · Contrast checker → · Palette generator →

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