#2C3174#2C3174

#2C3174 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 35.0% C 0.113 H 275.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2C3174
RGBrgb(44, 49, 116)
HSLhsl(236, 45%, 31%)
HSVhsv(236, 62%, 45%)
CMYKcmyk(62.1%, 57.8%, 0%, 54.5%)
CIE-LABlab(23.65, 19.99, -39.36)
CIE-LCHlch(23.65, 44.15, 296.92°)
OKLaboklab(34.97% 0.0111 -0.1129)
OKLCHoklch(34.97% 0.113 275.6)
XYZxyz(5.2884, 3.9927, 17.0116)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3174 #746F2C
analogous
#2C5574 #2C3174 #4B2C74
triadic
#2C3174 #742C31 #31742C
tetradic
#2C3174 #742C55 #746F2C #2C744B
square
#2C3174 #742C55 #746F2C #2C744B
split-complementary
#2C3174 #744B2C #55742C
monochromatic
#0A0C1B #1B1E48 #2C3174 #3D44A0 #5A61C0

Accessibility & contrast

On white

11.68
#2C3174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2C3174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3174
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3174#FFFFFF#000000##FFFFFF
##2C31741.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013B76
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#00414D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c3174;
/* rgb */ color: rgb(44, 49, 116);
/* oklch */ color: oklch(35.0% 0.113 275.6);
Tailwind
colors: {
  custom: {
    50: '#6d699d',
    500: '#2c3174',
    950: '#000000',
  },
}
SCSS
$custom: #2c3174;
$custom-light: #6d699d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3174",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 235.833,
    "s": 45,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34966,
    "c": 0.11345,
    "h": 275.6
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#2C3174
secondary
#A6A056
accent
#CC53D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2C3174

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

Preview Lab → · Contrast checker → · Palette generator →

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