#3126B7#3126B7

#3126B7 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.213 H 274.4°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#3126B7
RGBrgb(49, 38, 183)
HSLhsl(245, 66%, 43%)
HSVhsv(245, 79%, 72%)
CMYKcmyk(73.2%, 79.2%, 0%, 28.2%)
CIE-LABlab(28.00, 50.29, -73.43)
CIE-LCHlch(28.00, 89.01, 304.41°)
OKLaboklab(40.14% 0.0162 -0.2124)
OKLCHoklch(40.14% 0.213 274.4)
XYZxyz(10.5041, 5.4570, 45.2903)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3126B7 #ACB726
analogous
#2663B7 #3126B7 #7926B7
triadic
#3126B7 #B73126 #26B731
tetradic
#3126B7 #B72663 #ACB726 #26B779
square
#3126B7 #B72663 #ACB726 #26B779
split-complementary
#3126B7 #B77926 #63B726
monochromatic
#161152 #231B84 #3126B7 #4E42D8 #7D75E2

Accessibility & contrast

On white

10.04
#3126B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#3126B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3126B7
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3126B7#FFFFFF#000000##FFFFFF
##3126B71.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BB
Deuteranopia (green-blind)
#003BB5
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3126b7;
/* rgb */ color: rgb(49, 38, 183);
/* oklch */ color: oklch(40.1% 0.213 274.4);
Tailwind
colors: {
  custom: {
    50: '#7f64ce',
    500: '#3126b7',
    950: '#000000',
  },
}
SCSS
$custom: #3126b7;
$custom-light: #7f64ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3126b7",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 183
  },
  "hsl": {
    "h": 244.552,
    "s": 65.611,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40137,
    "c": 0.21302,
    "h": 274.4
  },
  "luminance": 0.05458
}

Semantic roles & 50–950 ramp

primary
#3126B7
secondary
#C3CA6F
accent
#E93FDC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #3126B7

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

Preview Lab → · Contrast checker → · Palette generator →

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