#2C418B#2C418B

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

Color values

HEX#2C418B
RGBrgb(44, 65, 139)
HSLhsl(227, 52%, 36%)
HSVhsv(227, 68%, 55%)
CMYKcmyk(68.3%, 53.2%, 0%, 45.5%)
CIE-LABlab(29.86, 17.62, -43.75)
CIE-LCHlch(29.86, 47.16, 291.93°)
OKLaboklab(40.18% -0.0037 -0.1256)
OKLCHoklch(40.18% 0.126 268.3)
XYZxyz(7.5876, 6.1794, 25.2140)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C418B #8B762C
analogous
#2C708B #2C418B #462C8B
triadic
#2C418B #8B2C41 #418B2C
tetradic
#2C418B #8B2C70 #8B762C #2C8B46
square
#2C418B #8B2C70 #8B762C #2C8B46
split-complementary
#2C418B #8B462C #708B2C
monochromatic
#0F162E #1D2B5D #2C418B #3B57B9 #647BCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C418B#FFFFFF#000000##FFFFFF
##2C418B1.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)
#134B8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c418b;
/* rgb */ color: rgb(44, 65, 139);
/* oklch */ color: oklch(40.2% 0.126 268.3);
Tailwind
colors: {
  custom: {
    50: '#7175ad',
    500: '#2c418b',
    950: '#000000',
  },
}
SCSS
$custom: #2c418b;
$custom-light: #7175ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c418b",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 226.737,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40184,
    "c": 0.12565,
    "h": 268.3
  },
  "luminance": 0.0618
}

Semantic roles & 50–950 ramp

primary
#2C418B
secondary
#B4A15F
accent
#BC4CDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2C418B

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

Preview Lab → · Contrast checker → · Palette generator →

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