#2C3A97#2C3A97

#2C3A97 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.152 H 271.1°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#2C3A97
RGBrgb(44, 58, 151)
HSLhsl(232, 55%, 38%)
HSVhsv(232, 71%, 59%)
CMYKcmyk(70.9%, 61.6%, 0%, 40.8%)
CIE-LABlab(28.89, 26.87, -52.69)
CIE-LCHlch(28.89, 59.14, 297.02°)
OKLaboklab(39.75% 0.003 -0.152)
OKLCHoklch(39.75% 0.152 271.1)
XYZxyz(8.1358, 5.7952, 29.9620)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3A97 #97892C
analogous
#2C6F97 #2C3A97 #542C97
triadic
#2C3A97 #972C3A #3A972C
tetradic
#2C3A97 #972C6F #97892C #2C9754
square
#2C3A97 #972C6F #97892C #2C9754
split-complementary
#2C3A97 #97542C #6F972C
monochromatic
#101638 #1E2868 #2C3A97 #3A4DC6 #6A78D4

Accessibility & contrast

On white

9.73
#2C3A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2C3A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3A97
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3A97#FFFFFF#000000##FFFFFF
##2C3A971.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c3a97;
/* rgb */ color: rgb(44, 58, 151);
/* oklch */ color: oklch(39.8% 0.152 271.1);
Tailwind
colors: {
  custom: {
    50: '#7470b6',
    500: '#2c3a97',
    950: '#000000',
  },
}
SCSS
$custom: #2c3a97;
$custom-light: #7470b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3a97",
  "rgb": {
    "r": 44,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 232.15,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39752,
    "c": 0.15202,
    "h": 271.1
  },
  "luminance": 0.05796
}

Semantic roles & 50–950 ramp

primary
#2C3A97
secondary
#BAAF65
accent
#CB4ADE
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2C3A97

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

Preview Lab → · Contrast checker → · Palette generator →

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