#2C4BAB#2C4BAB

#2C4BAB is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.8% C 0.158 H 266.4°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#2C4BAB
RGBrgb(44, 75, 171)
HSLhsl(225, 59%, 42%)
HSVhsv(225, 74%, 67%)
CMYKcmyk(74.3%, 56.1%, 0%, 32.9%)
CIE-LABlab(35.02, 23.04, -54.79)
CIE-LCHlch(35.02, 59.44, 292.81°)
OKLaboklab(44.83% -0.0099 -0.1579)
OKLCHoklch(44.83% 0.158 266.4)
XYZxyz(10.9029, 8.5067, 39.5875)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4BAB #AB8C2C
analogous
#2C8BAB #2C4BAB #4C2CAB
triadic
#2C4BAB #AB2C4B #4BAB2C
tetradic
#2C4BAB #AB2C8B #AB8C2C #2CAB4C
square
#2C4BAB #AB2C8B #AB8C2C #2CAB4C
split-complementary
#2C4BAB #AB4C2C #8BAB2C
monochromatic
#13204A #1F367A #2C4BAB #4567CF #768FDC

Accessibility & contrast

On white

7.77
#2C4BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2C4BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4BAB
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4BAB#FFFFFF#000000##FFFFFF
##2C4BAB1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2c4bab;
/* rgb */ color: rgb(44, 75, 171);
/* oklch */ color: oklch(44.8% 0.158 266.4);
Tailwind
colors: {
  custom: {
    50: '#777cc5',
    500: '#2c4bab',
    950: '#000000',
  },
}
SCSS
$custom: #2c4bab;
$custom-light: #777cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4bab",
  "rgb": {
    "r": 44,
    "g": 75,
    "b": 171
  },
  "hsl": {
    "h": 225.354,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44829,
    "c": 0.15822,
    "h": 266.4
  },
  "luminance": 0.08508
}

Semantic roles & 50–950 ramp

primary
#2C4BAB
secondary
#C3AF6F
accent
#BC46E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C4BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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