#3127B2#3127B2

#3127B2 is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.7% C 0.206 H 274.7°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#3127B2
RGBrgb(49, 39, 178)
HSLhsl(244, 64%, 43%)
HSVhsv(244, 78%, 70%)
CMYKcmyk(72.5%, 78.1%, 0%, 30.2%)
CIE-LABlab(27.62, 48.22, -71.08)
CIE-LCHlch(27.62, 85.89, 304.15°)
OKLaboklab(39.71% 0.017 -0.2056)
OKLCHoklch(39.71% 0.206 274.7)
XYZxyz(10.0254, 5.3174, 42.6089)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3127B2 #A8B227
analogous
#2762B2 #3127B2 #7727B2
triadic
#3127B2 #B23127 #27B231
tetradic
#3127B2 #B22762 #A8B227 #27B277
square
#3127B2 #B22762 #A8B227 #27B277
split-complementary
#3127B2 #B27727 #62B227
monochromatic
#15114E #231C80 #3127B2 #4C41D5 #7B73E0

Accessibility & contrast

On white

10.18
#3127B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3127B2
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3127B2#FFFFFF#000000##FFFFFF
##3127B21.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#003BB0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3127b2;
/* rgb */ color: rgb(49, 39, 178);
/* oklch */ color: oklch(39.7% 0.206 274.7);
Tailwind
colors: {
  custom: {
    50: '#7e64ca',
    500: '#3127b2',
    950: '#000000',
  },
}
SCSS
$custom: #3127b2;
$custom-light: #7e64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3127b2",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 244.317,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39709,
    "c": 0.20627,
    "h": 274.7
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#3127B2
secondary
#C1C86D
accent
#E741DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3127B2

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

Preview Lab → · Contrast checker → · Palette generator →

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