#3126A7#3126A7

#3126A7 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.4% C 0.194 H 275.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#3126A7
RGBrgb(49, 38, 167)
HSLhsl(245, 63%, 40%)
HSVhsv(245, 77%, 65%)
CMYKcmyk(70.7%, 77.2%, 0%, 34.5%)
CIE-LABlab(26.24, 45.26, -66.75)
CIE-LCHlch(26.24, 80.65, 304.14°)
OKLaboklab(38.39% 0.02 -0.193)
OKLCHoklch(38.39% 0.194 275.9)
XYZxyz(8.9325, 4.8284, 37.0130)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3126A7 #9CA726
analogous
#265CA7 #3126A7 #7126A7
triadic
#3126A7 #A73126 #26A731
tetradic
#3126A7 #A7265C #9CA726 #26A771
square
#3126A7 #A7265C #9CA726 #26A771
split-complementary
#3126A7 #A77126 #5CA726
monochromatic
#140F43 #221B75 #3126A7 #4538D2 #746ADD

Accessibility & contrast

On white

10.68
#3126A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3126A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3126A7
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3126A7#FFFFFF#000000##FFFFFF
##3126A71.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3126a7;
/* rgb */ color: rgb(49, 38, 167);
/* oklch */ color: oklch(38.4% 0.194 275.9);
Tailwind
colors: {
  custom: {
    50: '#7b63c2',
    500: '#3126a7',
    950: '#000000',
  },
}
SCSS
$custom: #3126a7;
$custom-light: #7b63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3126a7",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 245.116,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38388,
    "c": 0.19402,
    "h": 275.9
  },
  "luminance": 0.04829
}

Semantic roles & 50–950 ramp

primary
#3126A7
secondary
#BBC365
accent
#E642D8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #3126A7

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

Preview Lab → · Contrast checker → · Palette generator →

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