#2C418C#2C418C

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

Color values

HEX#2C418C
RGBrgb(44, 65, 140)
HSLhsl(227, 52%, 36%)
HSVhsv(227, 69%, 55%)
CMYKcmyk(68.6%, 53.6%, 0%, 45.1%)
CIE-LABlab(29.93, 17.99, -44.25)
CIE-LCHlch(29.93, 47.76, 292.13°)
OKLaboklab(40.26% -0.0036 -0.1271)
OKLCHoklch(40.26% 0.127 268.4)
XYZxyz(7.6610, 6.2088, 25.6005)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C418C #8C772C
analogous
#2C718C #2C418C #472C8C
triadic
#2C418C #8C2C41 #418C2C
tetradic
#2C418C #8C2C71 #8C772C #2C8C47
square
#2C418C #8C2C71 #8C772C #2C8C47
split-complementary
#2C418C #8C472C #718C2C
monochromatic
#0F162F #1D2B5D #2C418C #3B57BB #647BCE

Accessibility & contrast

On white

9.37
#2C418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C418C
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C418C#FFFFFF#000000##FFFFFF
##2C418C1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114B8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c418c;
/* rgb */ color: rgb(44, 65, 140);
/* oklch */ color: oklch(40.3% 0.127 268.4);
Tailwind
colors: {
  custom: {
    50: '#7175ae',
    500: '#2c418c',
    950: '#000000',
  },
}
SCSS
$custom: #2c418c;
$custom-light: #7175ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c418c",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 226.875,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40262,
    "c": 0.12711,
    "h": 268.4
  },
  "luminance": 0.0621
}

Semantic roles & 50–950 ramp

primary
#2C418C
secondary
#B5A25F
accent
#BC4CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2C418C

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

Preview Lab → · Contrast checker → · Palette generator →

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