#3126B5#3126B5

#3126B5 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 39.9% C 0.211 H 274.5°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#3126B5
RGBrgb(49, 38, 181)
HSLhsl(245, 65%, 43%)
HSVhsv(245, 79%, 71%)
CMYKcmyk(72.9%, 79%, 0%, 29%)
CIE-LABlab(27.78, 49.67, -72.61)
CIE-LCHlch(27.78, 87.98, 304.37°)
OKLaboklab(39.92% 0.0167 -0.21)
OKLCHoklch(39.92% 0.211 274.5)
XYZxyz(10.2975, 5.3744, 44.2018)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3126B5 #AAB526
analogous
#2663B5 #3126B5 #7826B5
triadic
#3126B5 #B53126 #26B531
tetradic
#3126B5 #B52663 #AAB526 #26B578
square
#3126B5 #B52663 #AAB526 #26B578
split-complementary
#3126B5 #B57826 #63B526
monochromatic
#161150 #231B82 #3126B5 #4D41D7 #7C74E2

Accessibility & contrast

On white

10.12
#3126B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3126B5
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3126B5#FFFFFF#000000##FFFFFF
##3126B51.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B9
Deuteranopia (green-blind)
#003BB3
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3126b5;
/* rgb */ color: rgb(49, 38, 181);
/* oklch */ color: oklch(39.9% 0.211 274.5);
Tailwind
colors: {
  custom: {
    50: '#7e64cd',
    500: '#3126b5',
    950: '#000000',
  },
}
SCSS
$custom: #3126b5;
$custom-light: #7e64cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3126b5",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 181
  },
  "hsl": {
    "h": 244.615,
    "s": 65.297,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39915,
    "c": 0.21067,
    "h": 274.5
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3126B5

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

Preview Lab → · Contrast checker → · Palette generator →

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