#3127A2#3127A2

#3127A2 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.187 H 276.3°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#3127A2
RGBrgb(49, 39, 162)
HSLhsl(245, 61%, 39%)
HSVhsv(245, 76%, 64%)
CMYKcmyk(69.8%, 75.9%, 0%, 36.5%)
CIE-LABlab(25.90, 43.10, -64.29)
CIE-LCHlch(25.90, 77.40, 303.84°)
OKLaboklab(37.99% 0.0206 -0.1858)
OKLCHoklch(37.99% 0.187 276.3)
XYZxyz(8.5116, 4.7119, 34.6363)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3127A2 #98A227
analogous
#275BA2 #3127A2 #6F27A2
triadic
#3127A2 #A23127 #27A231
tetradic
#3127A2 #A2275B #98A227 #27A26F
square
#3127A2 #A2275B #98A227 #27A26F
split-complementary
#3127A2 #A26F27 #5BA227
monochromatic
#130F3F #221B71 #3127A2 #4437CF #7269DB

Accessibility & contrast

On white

10.81
#3127A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3127A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3127A2
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3127A2#FFFFFF#000000##FFFFFF
##3127A21.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0038A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3127a2;
/* rgb */ color: rgb(49, 39, 162);
/* oklch */ color: oklch(38.0% 0.187 276.3);
Tailwind
colors: {
  custom: {
    50: '#7a63bf',
    500: '#3127a2',
    950: '#000000',
  },
}
SCSS
$custom: #3127a2;
$custom-light: #7a63bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3127a2",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 244.878,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37988,
    "c": 0.18696,
    "h": 276.3
  },
  "luminance": 0.04713
}

Semantic roles & 50–950 ramp

primary
#3127A2
secondary
#B9C164
accent
#E443D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3127A2

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

Preview Lab → · Contrast checker → · Palette generator →

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