#3126C5#3126C5

#3126C5 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.7% C 0.229 H 273.2°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#3126C5
RGBrgb(49, 38, 197)
HSLhsl(244, 68%, 46%)
HSVhsv(244, 81%, 77%)
CMYKcmyk(75.1%, 80.7%, 0%, 22.7%)
CIE-LABlab(29.59, 54.58, -79.08)
CIE-LCHlch(29.59, 96.08, 304.61°)
OKLaboklab(41.7% 0.0128 -0.2288)
OKLCHoklch(41.7% 0.229 273.2)
XYZxyz(12.0344, 6.0691, 53.3497)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3126C5 #BAC526
analogous
#266AC5 #3126C5 #8026C5
triadic
#3126C5 #C53126 #26C531
tetradic
#3126C5 #C5266A #BAC526 #26C580
square
#3126C5 #C5266A #BAC526 #26C580
split-complementary
#3126C5 #C58026 #6AC526
monochromatic
#17125E #241C92 #3126C5 #564CDC #867FE6

Accessibility & contrast

On white

9.49
#3126C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3126C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3126C5
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3126C5#FFFFFF#000000##FFFFFF
##3126C51.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC9
Deuteranopia (green-blind)
#003EC2
Tritanopia (blue-blind)
#005877
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3126c5;
/* rgb */ color: rgb(49, 38, 197);
/* oklch */ color: oklch(41.7% 0.229 273.2);
Tailwind
colors: {
  custom: {
    50: '#8265d8',
    500: '#3126c5',
    950: '#000000',
  },
}
SCSS
$custom: #3126c5;
$custom-light: #8265d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3126c5",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 197
  },
  "hsl": {
    "h": 244.151,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.41703,
    "c": 0.22912,
    "h": 273.2
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

primary
#3126C5
secondary
#C9CF78
accent
#EB3DDF
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #3126C5

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

Preview Lab → · Contrast checker → · Palette generator →

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