#2C3A9D#2C3A9D

#2C3A9D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.160 H 271.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2C3A9D
RGBrgb(44, 58, 157)
HSLhsl(233, 56%, 39%)
HSVhsv(233, 72%, 62%)
CMYKcmyk(72%, 63.1%, 0%, 38.4%)
CIE-LABlab(29.40, 29.09, -55.51)
CIE-LCHlch(29.40, 62.67, 297.65°)
OKLaboklab(40.29% 0.0029 -0.1603)
OKLCHoklch(40.29% 0.16 271)
XYZxyz(8.6355, 5.9950, 32.5938)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3A9D #9D8F2C
analogous
#2C739D #2C3A9D #562C9D
triadic
#2C3A9D #9D2C3A #3A9D2C
tetradic
#2C3A9D #9D2C73 #9D8F2C #2C9D56
square
#2C3A9D #9D2C73 #9D8F2C #2C9D56
split-complementary
#2C3A9D #9D562C #739D2C
monochromatic
#11173D #1F286D #2C3A9D #3D4FC9 #6D7AD6

Accessibility & contrast

On white

9.55
#2C3A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2C3A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3A9D
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3A9D#FFFFFF#000000##FFFFFF
##2C3A9D1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2c3a9d;
/* rgb */ color: rgb(44, 58, 157);
/* oklch */ color: oklch(40.3% 0.160 271.0);
Tailwind
colors: {
  custom: {
    50: '#7570bb',
    500: '#2c3a9d',
    950: '#000000',
  },
}
SCSS
$custom: #2c3a9d;
$custom-light: #7570bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3a9d",
  "rgb": {
    "r": 44,
    "g": 58,
    "b": 157
  },
  "hsl": {
    "h": 232.566,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40288,
    "c": 0.1603,
    "h": 271
  },
  "luminance": 0.05996
}

Semantic roles & 50–950 ramp

primary
#2C3A9D
secondary
#BDB368
accent
#CD48E0
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2C3A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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