#3128B2#3128B2

#3128B2 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 39.8% C 0.205 H 274.6°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#3128B2
RGBrgb(49, 40, 178)
HSLhsl(244, 63%, 43%)
HSVhsv(244, 78%, 70%)
CMYKcmyk(72.5%, 77.5%, 0%, 30.2%)
CIE-LABlab(27.80, 47.70, -70.78)
CIE-LCHlch(27.80, 85.36, 303.98°)
OKLaboklab(39.84% 0.0165 -0.2047)
OKLCHoklch(39.84% 0.205 274.6)
XYZxyz(10.0586, 5.3839, 42.6199)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3128B2 #A9B228
analogous
#2864B2 #3128B2 #7628B2
triadic
#3128B2 #B23128 #28B231
tetradic
#3128B2 #B22864 #A9B228 #28B276
square
#3128B2 #B22864 #A9B228 #28B276
split-complementary
#3128B2 #B27628 #64B228
monochromatic
#15124E #231D80 #3128B2 #4C43D5 #7C75E0

Accessibility & contrast

On white

10.11
#3128B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3128B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3128B2
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3128B2#FFFFFF#000000##FFFFFF
##3128B21.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3128b2;
/* rgb */ color: rgb(49, 40, 178);
/* oklch */ color: oklch(39.8% 0.205 274.6);
Tailwind
colors: {
  custom: {
    50: '#7e65ca',
    500: '#3128b2',
    950: '#000000',
  },
}
SCSS
$custom: #3128b2;
$custom-light: #7e65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3128b2",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 243.913,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39837,
    "c": 0.20538,
    "h": 274.6
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#3128B2
secondary
#C1C76F
accent
#E641DC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3128B2

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

Preview Lab → · Contrast checker → · Palette generator →

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