#3126A4#3126A4

#3126A4 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.1% C 0.190 H 276.2°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#3126A4
RGBrgb(49, 38, 164)
HSLhsl(245, 62%, 40%)
HSVhsv(245, 77%, 64%)
CMYKcmyk(70.1%, 76.8%, 0%, 35.7%)
CIE-LABlab(25.92, 44.30, -65.47)
CIE-LCHlch(25.92, 79.05, 304.08°)
OKLaboklab(38.07% 0.0207 -0.1892)
OKLCHoklch(38.07% 0.19 276.2)
XYZxyz(8.6584, 4.7187, 35.5693)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3126A4 #99A426
analogous
#265AA4 #3126A4 #7026A4
triadic
#3126A4 #A43126 #26A431
tetradic
#3126A4 #A4265A #99A426 #26A470
square
#3126A4 #A4265A #99A426 #26A470
split-complementary
#3126A4 #A47026 #5AA426
monochromatic
#130F41 #221A72 #3126A4 #4437D1 #7268DC

Accessibility & contrast

On white

10.80
#3126A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3126A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3126A4
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3126A4#FFFFFF#000000##FFFFFF
##3126A41.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#0038A2
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3126a4;
/* rgb */ color: rgb(49, 38, 164);
/* oklch */ color: oklch(38.1% 0.190 276.2);
Tailwind
colors: {
  custom: {
    50: '#7b63c0',
    500: '#3126a4',
    950: '#000000',
  },
}
SCSS
$custom: #3126a4;
$custom-light: #7b63c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3126a4",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 245.238,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38066,
    "c": 0.19037,
    "h": 276.2
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#3126A4
secondary
#BAC264
accent
#E542D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3126A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3126A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva