#3126A5#3126A5

#3126A5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.192 H 276.1°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#3126A5
RGBrgb(49, 38, 165)
HSLhsl(245, 63%, 40%)
HSVhsv(245, 77%, 65%)
CMYKcmyk(70.3%, 77%, 0%, 35.3%)
CIE-LABlab(26.02, 44.62, -65.90)
CIE-LCHlch(26.02, 79.58, 304.10°)
OKLaboklab(38.17% 0.0205 -0.1905)
OKLCHoklch(38.17% 0.192 276.1)
XYZxyz(8.7490, 4.7550, 36.0467)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3126A5 #9AA526
analogous
#265AA5 #3126A5 #7126A5
triadic
#3126A5 #A53126 #26A531
tetradic
#3126A5 #A5265A #9AA526 #26A571
square
#3126A5 #A5265A #9AA526 #26A571
split-complementary
#3126A5 #A57126 #5AA526
monochromatic
#130F42 #221B73 #3126A5 #4537D1 #7369DC

Accessibility & contrast

On white

10.76
#3126A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3126A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3126A5
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3126A5#FFFFFF#000000##FFFFFF
##3126A51.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3126a5;
/* rgb */ color: rgb(49, 38, 165);
/* oklch */ color: oklch(38.2% 0.192 276.1);
Tailwind
colors: {
  custom: {
    50: '#7b63c1',
    500: '#3126a5',
    950: '#000000',
  },
}
SCSS
$custom: #3126a5;
$custom-light: #7b63c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3126a5",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 245.197,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38173,
    "c": 0.19159,
    "h": 276.1
  },
  "luminance": 0.04756
}

Semantic roles & 50–950 ramp

primary
#3126A5
secondary
#BAC364
accent
#E642D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3126A5

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

Preview Lab → · Contrast checker → · Palette generator →

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