#2C418A#2C418A

#2C418A is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.1% C 0.124 H 268.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#2C418A
RGBrgb(44, 65, 138)
HSLhsl(227, 52%, 36%)
HSVhsv(227, 68%, 54%)
CMYKcmyk(68.1%, 52.9%, 0%, 45.9%)
CIE-LABlab(29.79, 17.24, -43.25)
CIE-LCHlch(29.79, 46.55, 291.73°)
OKLaboklab(40.11% -0.0038 -0.1241)
OKLCHoklch(40.11% 0.124 268.3)
XYZxyz(7.5149, 6.1503, 24.8309)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C418A #8A752C
analogous
#2C708A #2C418A #462C8A
triadic
#2C418A #8A2C41 #418A2C
tetradic
#2C418A #8A2C70 #8A752C #2C8A46
square
#2C418A #8A2C70 #8A752C #2C8A46
split-complementary
#2C418A #8A462C #708A2C
monochromatic
#0E152D #1D2B5C #2C418A #3B57B8 #637BCD

Accessibility & contrast

On white

9.42
#2C418A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C418A
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C418A#FFFFFF#000000##FFFFFF
##2C418A1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154B8D
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c418a;
/* rgb */ color: rgb(44, 65, 138);
/* oklch */ color: oklch(40.1% 0.124 268.3);
Tailwind
colors: {
  custom: {
    50: '#7075ad',
    500: '#2c418a',
    950: '#000000',
  },
}
SCSS
$custom: #2c418a;
$custom-light: #7075ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c418a",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 138
  },
  "hsl": {
    "h": 226.596,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40107,
    "c": 0.12418,
    "h": 268.3
  },
  "luminance": 0.06151
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C418A

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

Preview Lab → · Contrast checker → · Palette generator →

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