#3127B5#3127B5

#3127B5 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.0% C 0.210 H 274.4°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#3127B5
RGBrgb(49, 39, 181)
HSLhsl(244, 65%, 43%)
HSVhsv(244, 78%, 71%)
CMYKcmyk(72.9%, 78.5%, 0%, 29%)
CIE-LABlab(27.95, 49.17, -72.32)
CIE-LCHlch(27.95, 87.45, 304.21°)
OKLaboklab(40.04% 0.0163 -0.2092)
OKLCHoklch(40.04% 0.21 274.4)
XYZxyz(10.3299, 5.4392, 44.2126)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3127B5 #ABB527
analogous
#2764B5 #3127B5 #7827B5
triadic
#3127B5 #B53127 #27B531
tetradic
#3127B5 #B52764 #ABB527 #27B578
square
#3127B5 #B52764 #ABB527 #27B578
split-complementary
#3127B5 #B57827 #64B527
monochromatic
#161150 #231C83 #3127B5 #4D43D6 #7D75E1

Accessibility & contrast

On white

10.06
#3127B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#3127B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3127B5
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3127B5#FFFFFF#000000##FFFFFF
##3127B51.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B9
Deuteranopia (green-blind)
#003BB3
Tritanopia (blue-blind)
#00526E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3127b5;
/* rgb */ color: rgb(49, 39, 181);
/* oklch */ color: oklch(40.0% 0.210 274.4);
Tailwind
colors: {
  custom: {
    50: '#7e64cd',
    500: '#3127b5',
    950: '#000000',
  },
}
SCSS
$custom: #3127b5;
$custom-light: #7e64cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3127b5",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 181
  },
  "hsl": {
    "h": 244.225,
    "s": 64.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40038,
    "c": 0.20981,
    "h": 274.4
  },
  "luminance": 0.0544
}

Semantic roles & 50–950 ramp

primary
#3127B5
secondary
#C2C96F
accent
#E840DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #3127B5

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

Preview Lab → · Contrast checker → · Palette generator →

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