#3128A5#3128A5

#3128A5 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.190 H 275.9°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#3128A5
RGBrgb(49, 40, 165)
HSLhsl(244, 61%, 40%)
HSVhsv(244, 76%, 65%)
CMYKcmyk(70.3%, 75.8%, 0%, 35.3%)
CIE-LABlab(26.41, 43.53, -65.27)
CIE-LCHlch(26.41, 78.45, 303.70°)
OKLaboklab(38.44% 0.0194 -0.1887)
OKLCHoklch(38.44% 0.19 275.9)
XYZxyz(8.8147, 4.8863, 36.0686)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3128A5 #9CA528
analogous
#285DA5 #3128A5 #6F28A5
triadic
#3128A5 #A53128 #28A531
tetradic
#3128A5 #A5285D #9CA528 #28A56F
square
#3128A5 #A5285D #9CA528 #28A56F
split-complementary
#3128A5 #A56F28 #5DA528
monochromatic
#141042 #221C74 #3128A5 #453BCF #746CDB

Accessibility & contrast

On white

10.62
#3128A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3128A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3128A5
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3128A5#FFFFFF#000000##FFFFFF
##3128A51.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3128a5;
/* rgb */ color: rgb(49, 40, 165);
/* oklch */ color: oklch(38.4% 0.190 275.9);
Tailwind
colors: {
  custom: {
    50: '#7b64c1',
    500: '#3128a5',
    950: '#000000',
  },
}
SCSS
$custom: #3128a5;
$custom-light: #7b64c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3128a5",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 244.32,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38443,
    "c": 0.18967,
    "h": 275.9
  },
  "luminance": 0.04887
}

Semantic roles & 50–950 ramp

primary
#3128A5
secondary
#BBC267
accent
#E444D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3128A5

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

Preview Lab → · Contrast checker → · Palette generator →

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