#2C3AA1#2C3AA1

#2C3AA1 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.7% C 0.166 H 270.9°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2C3AA1
RGBrgb(44, 58, 161)
HSLhsl(233, 57%, 40%)
HSVhsv(233, 73%, 63%)
CMYKcmyk(72.7%, 64%, 0%, 36.9%)
CIE-LABlab(29.75, 30.56, -57.37)
CIE-LCHlch(29.75, 65.00, 298.04°)
OKLaboklab(40.65% 0.0027 -0.1657)
OKLCHoklch(40.65% 0.166 270.9)
XYZxyz(8.9826, 6.1339, 34.4219)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3AA1 #A1932C
analogous
#2C74A1 #2C3AA1 #592CA1
triadic
#2C3AA1 #A12C3A #3AA12C
tetradic
#2C3AA1 #A12C74 #A1932C #2CA159
square
#2C3AA1 #A12C74 #A1932C #2CA159
split-complementary
#2C3AA1 #A1592C #74A12C
monochromatic
#121741 #1F2971 #2C3AA1 #4050CB #707CD8

Accessibility & contrast

On white

9.43
#2C3AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2C3AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3AA1
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3AA1#FFFFFF#000000##FFFFFF
##2C3AA11.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c3aa1;
/* rgb */ color: rgb(44, 58, 161);
/* oklch */ color: oklch(40.7% 0.166 270.9);
Tailwind
colors: {
  custom: {
    50: '#7670be',
    500: '#2c3aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2c3aa1;
$custom-light: #7670be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3aa1",
  "rgb": {
    "r": 44,
    "g": 58,
    "b": 161
  },
  "hsl": {
    "h": 232.821,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40652,
    "c": 0.16574,
    "h": 270.9
  },
  "luminance": 0.06135
}

Semantic roles & 50–950 ramp

primary
#2C3AA1
secondary
#BFB56A
accent
#CE47E0
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2C3AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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