#2C3AA5#2C3AA5

#2C3AA5 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.171 H 270.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2C3AA5
RGBrgb(44, 58, 165)
HSLhsl(233, 58%, 41%)
HSVhsv(233, 73%, 65%)
CMYKcmyk(73.3%, 64.8%, 0%, 35.3%)
CIE-LABlab(30.10, 32.03, -59.21)
CIE-LCHlch(30.10, 67.31, 298.41°)
OKLaboklab(41.02% 0.0025 -0.1711)
OKLCHoklch(41.02% 0.171 270.8)
XYZxyz(9.3410, 6.2772, 36.3094)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3AA5 #A5972C
analogous
#2C76A5 #2C3AA5 #5A2CA5
triadic
#2C3AA5 #A52C3A #3AA52C
tetradic
#2C3AA5 #A52C76 #A5972C #2CA55A
square
#2C3AA5 #A52C76 #A5972C #2CA55A
split-complementary
#2C3AA5 #A55A2C #76A52C
monochromatic
#121844 #1F2975 #2C3AA5 #4252CD #727ED9

Accessibility & contrast

On white

9.31
#2C3AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2C3AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3AA5
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3AA5#FFFFFF#000000##FFFFFF
##2C3AA51.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2c3aa5;
/* rgb */ color: rgb(44, 58, 165);
/* oklch */ color: oklch(41.0% 0.171 270.8);
Tailwind
colors: {
  custom: {
    50: '#7770c1',
    500: '#2c3aa5',
    950: '#000000',
  },
}
SCSS
$custom: #2c3aa5;
$custom-light: #7770c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3aa5",
  "rgb": {
    "r": 44,
    "g": 58,
    "b": 165
  },
  "hsl": {
    "h": 233.058,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41021,
    "c": 0.17112,
    "h": 270.8
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#2C3AA5
secondary
#C1B76C
accent
#CF47E1
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2C3AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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