#3127A5#3127A5

#3127A5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.3% C 0.191 H 276.0°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#3127A5
RGBrgb(49, 39, 165)
HSLhsl(245, 62%, 40%)
HSVhsv(245, 76%, 65%)
CMYKcmyk(70.3%, 76.4%, 0%, 35.3%)
CIE-LABlab(26.22, 44.07, -65.59)
CIE-LCHlch(26.22, 79.02, 303.90°)
OKLaboklab(38.31% 0.02 -0.1896)
OKLCHoklch(38.31% 0.191 276)
XYZxyz(8.7814, 4.8198, 36.0575)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3127A5 #9BA527
analogous
#275CA5 #3127A5 #7027A5
triadic
#3127A5 #A53127 #27A531
tetradic
#3127A5 #A5275C #9BA527 #27A570
square
#3127A5 #A5275C #9BA527 #27A570
split-complementary
#3127A5 #A57027 #5CA527
monochromatic
#141042 #221B74 #3127A5 #4539D0 #736ADC

Accessibility & contrast

On white

10.69
#3127A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3127A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3127A5
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3127A5#FFFFFF#000000##FFFFFF
##3127A51.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3127a5;
/* rgb */ color: rgb(49, 39, 165);
/* oklch */ color: oklch(38.3% 0.191 276.0);
Tailwind
colors: {
  custom: {
    50: '#7b64c1',
    500: '#3127a5',
    950: '#000000',
  },
}
SCSS
$custom: #3127a5;
$custom-light: #7b64c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3127a5",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 244.762,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.38307,
    "c": 0.19064,
    "h": 276
  },
  "luminance": 0.04821
}

Semantic roles & 50–950 ramp

primary
#3127A5
secondary
#BBC266
accent
#E543D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3127A5

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

Preview Lab → · Contrast checker → · Palette generator →

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