#2C418D#2C418D

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

Color values

HEX#2C418D
RGBrgb(44, 65, 141)
HSLhsl(227, 52%, 36%)
HSVhsv(227, 69%, 55%)
CMYKcmyk(68.8%, 53.9%, 0%, 44.7%)
CIE-LABlab(30.01, 18.37, -44.74)
CIE-LCHlch(30.01, 48.37, 292.33°)
OKLaboklab(40.34% -0.0035 -0.1285)
OKLCHoklch(40.34% 0.129 268.4)
XYZxyz(7.7351, 6.2384, 25.9906)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C418D #8D782C
analogous
#2C728D #2C418D #482C8D
triadic
#2C418D #8D2C41 #418D2C
tetradic
#2C418D #8D2C72 #8D782C #2C8D48
square
#2C418D #8D2C72 #8D782C #2C8D48
split-complementary
#2C418D #8D482C #728D2C
monochromatic
#0F1630 #1D2B5E #2C418D #3B57BC #657CCF

Accessibility & contrast

On white

9.34
#2C418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2C418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C418D
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C418D#FFFFFF#000000##FFFFFF
##2C418D1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2c418d;
/* rgb */ color: rgb(44, 65, 141);
/* oklch */ color: oklch(40.3% 0.129 268.4);
Tailwind
colors: {
  custom: {
    50: '#7175af',
    500: '#2c418d',
    950: '#000000',
  },
}
SCSS
$custom: #2c418d;
$custom-light: #7175af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c418d",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 227.01,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40341,
    "c": 0.12858,
    "h": 268.4
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#2C418D
secondary
#B5A360
accent
#BD4CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2C418D

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

Preview Lab → · Contrast checker → · Palette generator →

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