#3128A2#3128A2

#3128A2 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.186 H 276.2°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3128A2
RGBrgb(49, 40, 162)
HSLhsl(244, 60%, 40%)
HSVhsv(244, 75%, 64%)
CMYKcmyk(69.8%, 75.3%, 0%, 36.5%)
CIE-LABlab(26.09, 42.55, -63.97)
CIE-LCHlch(26.09, 76.83, 303.63°)
OKLaboklab(38.13% 0.0201 -0.1849)
OKLCHoklch(38.13% 0.186 276.2)
XYZxyz(8.5449, 4.7784, 34.6474)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3128A2 #99A228
analogous
#285CA2 #3128A2 #6E28A2
triadic
#3128A2 #A23128 #28A231
tetradic
#3128A2 #A2285C #99A228 #28A26E
square
#3128A2 #A2285C #99A228 #28A26E
split-complementary
#3128A2 #A26E28 #5CA228
monochromatic
#131040 #221C71 #3128A2 #4439CE #726ADA

Accessibility & contrast

On white

10.74
#3128A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3128A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3128A2
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3128A2#FFFFFF#000000##FFFFFF
##3128A21.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3128a2;
/* rgb */ color: rgb(49, 40, 162);
/* oklch */ color: oklch(38.1% 0.186 276.2);
Tailwind
colors: {
  custom: {
    50: '#7a64bf',
    500: '#3128a2',
    950: '#000000',
  },
}
SCSS
$custom: #3128a2;
$custom-light: #7a64bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3128a2",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 244.426,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38127,
    "c": 0.18597,
    "h": 276.2
  },
  "luminance": 0.04779
}

Semantic roles & 50–950 ramp

primary
#3128A2
secondary
#BAC165
accent
#E444D8
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3128A2

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

Preview Lab → · Contrast checker → · Palette generator →

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