#3127AA#3127AA

#3127AA is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.8% C 0.197 H 275.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#3127AA
RGBrgb(49, 39, 170)
HSLhsl(245, 63%, 41%)
HSVhsv(245, 77%, 67%)
CMYKcmyk(71.2%, 77.1%, 0%, 33.3%)
CIE-LABlab(26.75, 45.68, -67.72)
CIE-LCHlch(26.75, 81.69, 304.00°)
OKLaboklab(38.84% 0.0188 -0.1958)
OKLCHoklch(38.84% 0.197 275.5)
XYZxyz(9.2455, 5.0054, 38.5013)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3127AA #A0AA27
analogous
#275EAA #3127AA #7227AA
triadic
#3127AA #AA3127 #27AA31
tetradic
#3127AA #AA275E #A0AA27 #27AA72
square
#3127AA #AA275E #A0AA27 #27AA72
split-complementary
#3127AA #AA7227 #5EAA27
monochromatic
#141046 #231C78 #3127AA #473CD2 #766EDE

Accessibility & contrast

On white

10.49
#3127AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3127AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3127AA#FFFFFF#000000##FFFFFF
##3127AA1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AE
Deuteranopia (green-blind)
#0039A8
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3127aa;
/* rgb */ color: rgb(49, 39, 170);
/* oklch */ color: oklch(38.8% 0.197 275.5);
Tailwind
colors: {
  custom: {
    50: '#7c64c5',
    500: '#3127aa',
    950: '#000000',
  },
}
SCSS
$custom: #3127aa;
$custom-light: #7c64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3127aa",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 244.58,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38842,
    "c": 0.1967,
    "h": 275.5
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

primary
#3127AA
secondary
#BDC469
accent
#E642D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #3127AA

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

Preview Lab → · Contrast checker → · Palette generator →

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