#2C408C#2C408C

#2C408C is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.128 H 268.8°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#2C408C
RGBrgb(44, 64, 140)
HSLhsl(228, 52%, 36%)
HSVhsv(228, 69%, 55%)
CMYKcmyk(68.6%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.65, 18.68, -44.70)
CIE-LCHlch(29.65, 48.45, 292.67°)
OKLaboklab(40.05% -0.0026 -0.1284)
OKLCHoklch(40.05% 0.128 268.8)
XYZxyz(7.6041, 6.0950, 25.5816)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C408C #8C782C
analogous
#2C708C #2C408C #482C8C
triadic
#2C408C #8C2C40 #408C2C
tetradic
#2C408C #8C2C70 #8C782C #2C8C48
square
#2C408C #8C2C70 #8C782C #2C8C48
split-complementary
#2C408C #8C482C #708C2C
monochromatic
#0F152F #1D2B5D #2C408C #3B55BB #647ACE

Accessibility & contrast

On white

9.46
#2C408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2C408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C408C
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C408C#FFFFFF#000000##FFFFFF
##2C408C1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4A8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c408c;
/* rgb */ color: rgb(44, 64, 140);
/* oklch */ color: oklch(40.0% 0.128 268.8);
Tailwind
colors: {
  custom: {
    50: '#7174ae',
    500: '#2c408c',
    950: '#000000',
  },
}
SCSS
$custom: #2c408c;
$custom-light: #7174ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c408c",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 227.5,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40049,
    "c": 0.12845,
    "h": 268.8
  },
  "luminance": 0.06096
}

Semantic roles & 50–950 ramp

primary
#2C408C
secondary
#B5A35F
accent
#BE4CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2C408C

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

Preview Lab → · Contrast checker → · Palette generator →

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