#2C4FAF#2C4FAF

#2C4FAF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.0% C 0.159 H 265.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#2C4FAF
RGBrgb(44, 79, 175)
HSLhsl(224, 60%, 43%)
HSVhsv(224, 75%, 69%)
CMYKcmyk(74.9%, 54.9%, 0%, 31.4%)
CIE-LABlab(36.41, 21.91, -54.91)
CIE-LCHlch(36.41, 59.12, 291.75°)
OKLaboklab(45.97% -0.0127 -0.1582)
OKLCHoklch(45.97% 0.159 265.4)
XYZxyz(11.5698, 9.2213, 41.7193)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4FAF #AF8C2C
analogous
#2C91AF #2C4FAF #4A2CAF
triadic
#2C4FAF #AF2C4F #4FAF2C
tetradic
#2C4FAF #AF2C91 #AF8C2C #2CAF4A
square
#2C4FAF #AF2C91 #AF8C2C #2CAF4A
split-complementary
#2C4FAF #AF4A2C #91AF2C
monochromatic
#13234D #20397E #2C4FAF #476CD1 #7893DD

Accessibility & contrast

On white

7.38
#2C4FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2C4FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4FAF
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4FAF#FFFFFF#000000##FFFFFF
##2C4FAF1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2c4faf;
/* rgb */ color: rgb(44, 79, 175);
/* oklch */ color: oklch(46.0% 0.159 265.4);
Tailwind
colors: {
  custom: {
    50: '#787fc8',
    500: '#2c4faf',
    950: '#000000',
  },
}
SCSS
$custom: #2c4faf;
$custom-light: #787fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4faf",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 175
  },
  "hsl": {
    "h": 223.969,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.15871,
    "h": 265.4
  },
  "luminance": 0.09223
}

Semantic roles & 50–950 ramp

primary
#2C4FAF
secondary
#C5AF72
accent
#B945E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C4FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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