#2C4A97#2C4A97

#2C4A97 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.0% C 0.131 H 265.3°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#2C4A97
RGBrgb(44, 74, 151)
HSLhsl(223, 55%, 38%)
HSVhsv(223, 71%, 59%)
CMYKcmyk(70.9%, 51%, 0%, 40.8%)
CIE-LABlab(33.28, 16.09, -45.57)
CIE-LCHlch(33.28, 48.33, 289.45°)
OKLaboklab(43.05% -0.0108 -0.1308)
OKLCHoklch(43.05% 0.131 265.3)
XYZxyz(9.0714, 7.6665, 30.2739)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4A97 #97792C
analogous
#2C7F97 #2C4A97 #442C97
triadic
#2C4A97 #972C4A #4A972C
tetradic
#2C4A97 #972C7F #97792C #2C9744
square
#2C4A97 #972C7F #97792C #2C9744
split-complementary
#2C4A97 #97442C #7F972C
monochromatic
#101C38 #1E3368 #2C4A97 #3A62C6 #6A87D4

Accessibility & contrast

On white

8.29
#2C4A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2C4A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4A97
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4A97#FFFFFF#000000##FFFFFF
##2C4A971.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D539A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c4a97;
/* rgb */ color: rgb(44, 74, 151);
/* oklch */ color: oklch(43.0% 0.131 265.3);
Tailwind
colors: {
  custom: {
    50: '#737cb6',
    500: '#2c4a97',
    950: '#000000',
  },
}
SCSS
$custom: #2c4a97;
$custom-light: #737cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4a97",
  "rgb": {
    "r": 44,
    "g": 74,
    "b": 151
  },
  "hsl": {
    "h": 223.178,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4305,
    "c": 0.13128,
    "h": 265.3
  },
  "luminance": 0.07667
}

Semantic roles & 50–950 ramp

primary
#2C4A97
secondary
#BAA265
accent
#B54ADE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2C4A97

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

Preview Lab → · Contrast checker → · Palette generator →

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