#2C4AB1#2C4AB1

#2C4AB1 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.1% C 0.168 H 267.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#2C4AB1
RGBrgb(44, 74, 177)
HSLhsl(226, 60%, 43%)
HSVhsv(226, 75%, 69%)
CMYKcmyk(75.1%, 58.2%, 0%, 30.6%)
CIE-LABlab(35.21, 25.98, -58.03)
CIE-LCHlch(35.21, 63.58, 294.11°)
OKLaboklab(45.12% -0.0088 -0.1675)
OKLCHoklch(45.12% 0.168 267)
XYZxyz(11.4205, 8.6061, 42.6457)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4AB1 #B1932C
analogous
#2C8CB1 #2C4AB1 #502CB1
triadic
#2C4AB1 #B12C4A #4AB12C
tetradic
#2C4AB1 #B12C8C #B1932C #2CB150
square
#2C4AB1 #B12C8C #B1932C #2CB150
split-complementary
#2C4AB1 #B1502C #8CB12C
monochromatic
#14214F #203680 #2C4AB1 #4967D2 #7A90DE

Accessibility & contrast

On white

7.72
#2C4AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2C4AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4AB1
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4AB1#FFFFFF#000000##FFFFFF
##2C4AB11.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B4
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2c4ab1;
/* rgb */ color: rgb(44, 74, 177);
/* oklch */ color: oklch(45.1% 0.168 267.0);
Tailwind
colors: {
  custom: {
    50: '#797cc9',
    500: '#2c4ab1',
    950: '#000000',
  },
}
SCSS
$custom: #2c4ab1;
$custom-light: #797cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4ab1",
  "rgb": {
    "r": 44,
    "g": 74,
    "b": 177
  },
  "hsl": {
    "h": 226.466,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45124,
    "c": 0.16769,
    "h": 267
  },
  "luminance": 0.08607
}

Semantic roles & 50–950 ramp

primary
#2C4AB1
secondary
#C6B373
accent
#BF44E3
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C4AB1

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

Preview Lab → · Contrast checker → · Palette generator →

#2C4AB1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva