#3126A3#3126A3

#3126A3 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.189 H 276.4°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#3126A3
RGBrgb(49, 38, 163)
HSLhsl(245, 62%, 39%)
HSVhsv(245, 77%, 64%)
CMYKcmyk(69.9%, 76.7%, 0%, 36.1%)
CIE-LABlab(25.81, 43.97, -65.04)
CIE-LCHlch(25.81, 78.51, 304.06°)
OKLaboklab(37.96% 0.021 -0.188)
OKLCHoklch(37.96% 0.189 276.4)
XYZxyz(8.5684, 4.6828, 35.0955)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3126A3 #98A326
analogous
#265AA3 #3126A3 #7026A3
triadic
#3126A3 #A33126 #26A331
tetradic
#3126A3 #A3265A #98A326 #26A370
square
#3126A3 #A3265A #98A326 #26A370
split-complementary
#3126A3 #A37026 #5AA326
monochromatic
#130F40 #221A71 #3126A3 #4436D0 #7268DC

Accessibility & contrast

On white

10.84
#3126A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3126A3
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3126A3#FFFFFF#000000##FFFFFF
##3126A31.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#0038A1
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3126a3;
/* rgb */ color: rgb(49, 38, 163);
/* oklch */ color: oklch(38.0% 0.189 276.4);
Tailwind
colors: {
  custom: {
    50: '#7a63bf',
    500: '#3126a3',
    950: '#000000',
  },
}
SCSS
$custom: #3126a3;
$custom-light: #7a63bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3126a3",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 245.28,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37959,
    "c": 0.18915,
    "h": 276.4
  },
  "luminance": 0.04684
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3126A3

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

Preview Lab → · Contrast checker → · Palette generator →

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