#3127B1#3127B1

#3127B1 is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.6% C 0.205 H 274.8°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#3127B1
RGBrgb(49, 39, 177)
HSLhsl(244, 64%, 42%)
HSVhsv(244, 78%, 69%)
CMYKcmyk(72.3%, 78%, 0%, 30.6%)
CIE-LABlab(27.51, 47.91, -70.66)
CIE-LCHlch(27.51, 85.37, 304.14°)
OKLaboklab(39.6% 0.0172 -0.2044)
OKLCHoklch(39.6% 0.205 274.8)
XYZxyz(9.9253, 5.2774, 42.0820)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3127B1 #A7B127
analogous
#2762B1 #3127B1 #7627B1
triadic
#3127B1 #B13127 #27B131
tetradic
#3127B1 #B12762 #A7B127 #27B176
square
#3127B1 #B12762 #A7B127 #27B176
split-complementary
#3127B1 #B17627 #62B127
monochromatic
#15114D #231C7F #3127B1 #4B40D5 #7A72E0

Accessibility & contrast

On white

10.22
#3127B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#3127B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3127B1
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3127B1#FFFFFF#000000##FFFFFF
##3127B11.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B5
Deuteranopia (green-blind)
#003BAF
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3127b1;
/* rgb */ color: rgb(49, 39, 177);
/* oklch */ color: oklch(39.6% 0.205 274.8);
Tailwind
colors: {
  custom: {
    50: '#7d64ca',
    500: '#3127b1',
    950: '#000000',
  },
}
SCSS
$custom: #3127b1;
$custom-light: #7d64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3127b1",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 244.348,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.396,
    "c": 0.20508,
    "h": 274.8
  },
  "luminance": 0.05278
}

Semantic roles & 50–950 ramp

primary
#3127B1
secondary
#C1C76D
accent
#E741DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3127B1

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

Preview Lab → · Contrast checker → · Palette generator →

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