#2C408A#2C408A

#2C408A is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.126 H 268.7°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2C408A
RGBrgb(44, 64, 138)
HSLhsl(227, 52%, 36%)
HSVhsv(227, 68%, 54%)
CMYKcmyk(68.1%, 53.6%, 0%, 45.9%)
CIE-LABlab(29.50, 17.92, -43.70)
CIE-LCHlch(29.50, 47.24, 292.29°)
OKLaboklab(39.89% -0.0028 -0.1255)
OKLCHoklch(39.89% 0.126 268.7)
XYZxyz(7.4580, 6.0365, 24.8120)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C408A #8A762C
analogous
#2C6F8A #2C408A #472C8A
triadic
#2C408A #8A2C40 #408A2C
tetradic
#2C408A #8A2C6F #8A762C #2C8A47
square
#2C408A #8A2C6F #8A762C #2C8A47
split-complementary
#2C408A #8A472C #6F8A2C
monochromatic
#0E152D #1D2A5C #2C408A #3B56B8 #637ACD

Accessibility & contrast

On white

9.51
#2C408A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2C408A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C408A
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C408A#FFFFFF#000000##FFFFFF
##2C408A1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114A8D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2c408a;
/* rgb */ color: rgb(44, 64, 138);
/* oklch */ color: oklch(39.9% 0.126 268.7);
Tailwind
colors: {
  custom: {
    50: '#7074ad',
    500: '#2c408a',
    950: '#000000',
  },
}
SCSS
$custom: #2c408a;
$custom-light: #7074ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c408a",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 227.234,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39892,
    "c": 0.12552,
    "h": 268.7
  },
  "luminance": 0.06037
}

Semantic roles & 50–950 ramp

primary
#2C408A
secondary
#B4A15E
accent
#BD4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2C408A

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

Preview Lab → · Contrast checker → · Palette generator →

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