#2C5395#2C5395

#2C5395 is a dark, moderate blue. Relative luminance 0.089; OKLCH L 44.9% C 0.117 H 260.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2C5395
RGBrgb(44, 83, 149)
HSLhsl(218, 54%, 38%)
HSVhsv(218, 70%, 58%)
CMYKcmyk(70.5%, 44.3%, 0%, 41.6%)
CIE-LABlab(35.77, 9.33, -40.36)
CIE-LCHlch(35.77, 41.42, 283.01°)
OKLaboklab(44.92% -0.0198 -0.1153)
OKLCHoklch(44.92% 0.117 260.2)
XYZxyz(9.5548, 8.8909, 29.6405)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5395 #956E2C
analogous
#2C8795 #2C5395 #392C95
triadic
#2C5395 #952C53 #53952C
tetradic
#2C5395 #952C87 #956E2C #2C9539
square
#2C5395 #952C87 #956E2C #2C9539
split-complementary
#2C5395 #95392C #87952C
monochromatic
#101E37 #1E3966 #2C5395 #3A6DC4 #6990D3

Accessibility & contrast

On white

7.56
#2C5395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2C5395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5395
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5395#FFFFFF#000000##FFFFFF
##2C53951.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335998
Deuteranopia (green-blind)
#215094
Tritanopia (blue-blind)
#00626C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2c5395;
/* rgb */ color: rgb(44, 83, 149);
/* oklch */ color: oklch(44.9% 0.117 260.2);
Tailwind
colors: {
  custom: {
    50: '#7282b4',
    500: '#2c5395',
    950: '#000000',
  },
}
SCSS
$custom: #2c5395;
$custom-light: #7282b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5395",
  "rgb": {
    "r": 44,
    "g": 83,
    "b": 149
  },
  "hsl": {
    "h": 217.714,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44922,
    "c": 0.11702,
    "h": 260.2
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#2C5395
secondary
#B99964
accent
#A74ADE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2C5395

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

Preview Lab → · Contrast checker → · Palette generator →

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