#2C4FAB#2C4FAB

#2C4FAB is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.7% C 0.153 H 265.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#2C4FAB
RGBrgb(44, 79, 171)
HSLhsl(223, 59%, 42%)
HSVhsv(223, 74%, 67%)
CMYKcmyk(74.3%, 53.8%, 0%, 32.9%)
CIE-LABlab(36.11, 20.38, -53.01)
CIE-LCHlch(36.11, 56.79, 291.03°)
OKLaboklab(45.66% -0.0131 -0.1526)
OKLCHoklch(45.66% 0.153 265.1)
XYZxyz(11.1828, 9.0665, 39.6808)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4FAB #AB882C
analogous
#2C8EAB #2C4FAB #492CAB
triadic
#2C4FAB #AB2C4F #4FAB2C
tetradic
#2C4FAB #AB2C8E #AB882C #2CAB49
square
#2C4FAB #AB2C8E #AB882C #2CAB49
split-complementary
#2C4FAB #AB492C #8EAB2C
monochromatic
#13224A #1F397A #2C4FAB #456BCF #7692DC

Accessibility & contrast

On white

7.46
#2C4FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2C4FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4FAB
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4FAB#FFFFFF#000000##FFFFFF
##2C4FAB1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095BAE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2c4fab;
/* rgb */ color: rgb(44, 79, 171);
/* oklch */ color: oklch(45.7% 0.153 265.1);
Tailwind
colors: {
  custom: {
    50: '#777fc5',
    500: '#2c4fab',
    950: '#000000',
  },
}
SCSS
$custom: #2c4fab;
$custom-light: #777fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4fab",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 171
  },
  "hsl": {
    "h": 223.465,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45656,
    "c": 0.15318,
    "h": 265.1
  },
  "luminance": 0.09068
}

Semantic roles & 50–950 ramp

primary
#2C4FAB
secondary
#C3AC6F
accent
#B746E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C4FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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