#2C408F#2C408F

#2C408F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.133 H 269.0°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#2C408F
RGBrgb(44, 64, 143)
HSLhsl(228, 53%, 37%)
HSVhsv(228, 69%, 56%)
CMYKcmyk(69.2%, 55.2%, 0%, 43.9%)
CIE-LABlab(29.87, 19.81, -46.19)
CIE-LCHlch(29.87, 50.26, 293.22°)
OKLaboklab(40.29% -0.0024 -0.1328)
OKLCHoklch(40.29% 0.133 269)
XYZxyz(7.8283, 6.1847, 26.7625)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C408F #8F7B2C
analogous
#2C728F #2C408F #4A2C8F
triadic
#2C408F #8F2C40 #408F2C
tetradic
#2C408F #8F2C72 #8F7B2C #2C8F4A
square
#2C408F #8F2C72 #8F7B2C #2C8F4A
split-complementary
#2C408F #8F4A2C #728F2C
monochromatic
#0F1631 #1E2B60 #2C408F #3A55BE #667BD0

Accessibility & contrast

On white

9.39
#2C408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2C408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C408F
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C408F#FFFFFF#000000##FFFFFF
##2C408F1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054B92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c408f;
/* rgb */ color: rgb(44, 64, 143);
/* oklch */ color: oklch(40.3% 0.133 269.0);
Tailwind
colors: {
  custom: {
    50: '#7274b0',
    500: '#2c408f',
    950: '#000000',
  },
}
SCSS
$custom: #2c408f;
$custom-light: #7274b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c408f",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 227.879,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40288,
    "c": 0.13282,
    "h": 269
  },
  "luminance": 0.06185
}

Semantic roles & 50–950 ramp

primary
#2C408F
secondary
#B6A561
accent
#BF4BDC
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2C408F

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

Preview Lab → · Contrast checker → · Palette generator →

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