#2C3371#2C3371

#2C3371 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.1% C 0.106 H 274.7°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2C3371
RGBrgb(44, 51, 113)
HSLhsl(234, 44%, 31%)
HSVhsv(234, 61%, 44%)
CMYKcmyk(61.1%, 54.9%, 0%, 55.7%)
CIE-LABlab(23.98, 17.50, -36.90)
CIE-LCHlch(23.98, 40.84, 295.37°)
OKLaboklab(35.15% 0.0087 -0.1056)
OKLCHoklch(35.15% 0.106 274.7)
XYZxyz(5.2022, 4.0950, 16.1359)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3371 #716A2C
analogous
#2C5571 #2C3371 #472C71
triadic
#2C3371 #712C33 #33712C
tetradic
#2C3371 #712C55 #716A2C #2C7147
square
#2C3371 #712C55 #716A2C #2C7147
split-complementary
#2C3371 #71472C #55712C
monochromatic
#0A0B19 #1B1F45 #2C3371 #3D479D #5963BE

Accessibility & contrast

On white

11.54
#2C3371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2C3371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3371
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3371#FFFFFF#000000##FFFFFF
##2C33711.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3C73
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c3371;
/* rgb */ color: rgb(44, 51, 113);
/* oklch */ color: oklch(35.1% 0.106 274.7);
Tailwind
colors: {
  custom: {
    50: '#6c6a9a',
    500: '#2c3371',
    950: '#000000',
  },
}
SCSS
$custom: #2c3371;
$custom-light: #6c6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3371",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 233.913,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35146,
    "c": 0.106,
    "h": 274.7
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#2C3371
secondary
#A39B56
accent
#C754D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2C3371

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

Preview Lab → · Contrast checker → · Palette generator →

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