#3126B6#3126B6

#3126B6 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.0% C 0.212 H 274.4°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#3126B6
RGBrgb(49, 38, 182)
HSLhsl(245, 65%, 43%)
HSVhsv(245, 79%, 71%)
CMYKcmyk(73.1%, 79.1%, 0%, 28.6%)
CIE-LABlab(27.89, 49.98, -73.02)
CIE-LCHlch(27.89, 88.49, 304.39°)
OKLaboklab(40.03% 0.0164 -0.2112)
OKLCHoklch(40.03% 0.212 274.4)
XYZxyz(10.4004, 5.4156, 44.7441)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3126B6 #ABB626
analogous
#2663B6 #3126B6 #7926B6
triadic
#3126B6 #B63126 #26B631
tetradic
#3126B6 #B62663 #ABB626 #26B679
square
#3126B6 #B62663 #ABB626 #26B679
split-complementary
#3126B6 #B67926 #63B626
monochromatic
#161151 #231B83 #3126B6 #4D42D7 #7D74E2

Accessibility & contrast

On white

10.08
#3126B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3126B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3126B6
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3126B6#FFFFFF#000000##FFFFFF
##3126B61.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048BA
Deuteranopia (green-blind)
#003BB4
Tritanopia (blue-blind)
#00526E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3126b6;
/* rgb */ color: rgb(49, 38, 182);
/* oklch */ color: oklch(40.0% 0.212 274.4);
Tailwind
colors: {
  custom: {
    50: '#7f64cd',
    500: '#3126b6',
    950: '#000000',
  },
}
SCSS
$custom: #3126b6;
$custom-light: #7f64cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3126b6",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 182
  },
  "hsl": {
    "h": 244.583,
    "s": 65.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40026,
    "c": 0.21185,
    "h": 274.4
  },
  "luminance": 0.05417
}

Semantic roles & 50–950 ramp

primary
#3126B6
secondary
#C2C96E
accent
#E83FDC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #3126B6

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

Preview Lab → · Contrast checker → · Palette generator →

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