#2C4CAB#2C4CAB

#2C4CAB is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.157 H 266.1°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#2C4CAB
RGBrgb(44, 76, 171)
HSLhsl(225, 59%, 42%)
HSVhsv(225, 74%, 67%)
CMYKcmyk(74.3%, 55.6%, 0%, 32.9%)
CIE-LABlab(35.29, 22.38, -54.34)
CIE-LCHlch(35.29, 58.77, 292.38°)
OKLaboklab(45.03% -0.0107 -0.1566)
OKLCHoklch(45.03% 0.157 266.1)
XYZxyz(10.9713, 8.6434, 39.6103)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4CAB #AB8B2C
analogous
#2C8CAB #2C4CAB #4C2CAB
triadic
#2C4CAB #AB2C4C #4CAB2C
tetradic
#2C4CAB #AB2C8C #AB8B2C #2CAB4C
square
#2C4CAB #AB2C8C #AB8B2C #2CAB4C
split-complementary
#2C4CAB #AB4C2C #8CAB2C
monochromatic
#13214A #1F367A #2C4CAB #4568CF #768FDC

Accessibility & contrast

On white

7.70
#2C4CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2C4CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4CAB
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4CAB#FFFFFF#000000##FFFFFF
##2C4CAB1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2c4cab;
/* rgb */ color: rgb(44, 76, 171);
/* oklch */ color: oklch(45.0% 0.157 266.1);
Tailwind
colors: {
  custom: {
    50: '#777dc5',
    500: '#2c4cab',
    950: '#000000',
  },
}
SCSS
$custom: #2c4cab;
$custom-light: #777dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4cab",
  "rgb": {
    "r": 44,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 224.882,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45034,
    "c": 0.15696,
    "h": 266.1
  },
  "luminance": 0.08645
}

Semantic roles & 50–950 ramp

primary
#2C4CAB
secondary
#C3AE6F
accent
#BB46E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C4CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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