#2C4F95#2C4F95

#2C4F95 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.0% C 0.122 H 262.5°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#2C4F95
RGBrgb(44, 79, 149)
HSLhsl(220, 54%, 38%)
HSVhsv(220, 70%, 58%)
CMYKcmyk(70.5%, 47%, 0%, 41.6%)
CIE-LABlab(34.59, 11.98, -42.25)
CIE-LCHlch(34.59, 43.91, 285.83°)
OKLaboklab(44.01% -0.0159 -0.1209)
OKLCHoklch(44.01% 0.122 262.5)
XYZxyz(9.2576, 8.2964, 29.5414)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4F95 #95722C
analogous
#2C8395 #2C4F95 #3D2C95
triadic
#2C4F95 #952C4F #4F952C
tetradic
#2C4F95 #952C83 #95722C #2C953D
square
#2C4F95 #952C83 #95722C #2C953D
split-complementary
#2C4F95 #953D2C #83952C
monochromatic
#101D37 #1E3666 #2C4F95 #3A68C4 #698CD3

Accessibility & contrast

On white

7.90
#2C4F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2C4F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4F95
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4F95#FFFFFF#000000##FFFFFF
##2C4F951.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5798
Deuteranopia (green-blind)
#164D94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c4f95;
/* rgb */ color: rgb(44, 79, 149);
/* oklch */ color: oklch(44.0% 0.122 262.5);
Tailwind
colors: {
  custom: {
    50: '#727fb5',
    500: '#2c4f95',
    950: '#000000',
  },
}
SCSS
$custom: #2c4f95;
$custom-light: #727fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4f95",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 149
  },
  "hsl": {
    "h": 220,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44012,
    "c": 0.12199,
    "h": 262.5
  },
  "luminance": 0.08297
}

Semantic roles & 50–950 ramp

primary
#2C4F95
secondary
#B99D64
accent
#AD4ADE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2C4F95

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

Preview Lab → · Contrast checker → · Palette generator →

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