#3126A2#3126A2

#3126A2 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.9% C 0.188 H 276.5°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#3126A2
RGBrgb(49, 38, 162)
HSLhsl(245, 62%, 39%)
HSVhsv(245, 77%, 64%)
CMYKcmyk(69.8%, 76.5%, 0%, 36.5%)
CIE-LABlab(25.70, 43.65, -64.61)
CIE-LCHlch(25.70, 77.97, 304.04°)
OKLaboklab(37.85% 0.0212 -0.1867)
OKLCHoklch(37.85% 0.188 276.5)
XYZxyz(8.4792, 4.6471, 34.6255)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3126A2 #97A226
analogous
#2659A2 #3126A2 #6F26A2
triadic
#3126A2 #A23126 #26A231
tetradic
#3126A2 #A22659 #97A226 #26A26F
square
#3126A2 #A22659 #97A226 #26A26F
split-complementary
#3126A2 #A26F26 #59A226
monochromatic
#130F3F #221A70 #3126A2 #4335D0 #7167DB

Accessibility & contrast

On white

10.88
#3126A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3126A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3126A2
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3126A2#FFFFFF#000000##FFFFFF
##3126A21.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3126a2;
/* rgb */ color: rgb(49, 38, 162);
/* oklch */ color: oklch(37.9% 0.188 276.5);
Tailwind
colors: {
  custom: {
    50: '#7a63bf',
    500: '#3126a2',
    950: '#000000',
  },
}
SCSS
$custom: #3126a2;
$custom-light: #7a63bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3126a2",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 245.323,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37852,
    "c": 0.18793,
    "h": 276.5
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

primary
#3126A2
secondary
#B9C163
accent
#E543D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3126A2

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

Preview Lab → · Contrast checker → · Palette generator →

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