#2C418E#2C418E

#2C418E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.4% C 0.130 H 268.5°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#2C418E
RGBrgb(44, 65, 142)
HSLhsl(227, 53%, 36%)
HSVhsv(227, 69%, 56%)
CMYKcmyk(69%, 54.2%, 0%, 44.3%)
CIE-LABlab(30.08, 18.75, -45.24)
CIE-LCHlch(30.08, 48.97, 292.52°)
OKLaboklab(40.42% -0.0034 -0.13)
OKLCHoklch(40.42% 0.13 268.5)
XYZxyz(7.8098, 6.2683, 26.3843)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C418E #8E792C
analogous
#2C728E #2C418E #482C8E
triadic
#2C418E #8E2C41 #418E2C
tetradic
#2C418E #8E2C72 #8E792C #2C8E48
square
#2C418E #8E2C72 #8E792C #2C8E48
split-complementary
#2C418E #8E482C #728E2C
monochromatic
#0F1631 #1E2C5F #2C418E #3A56BD #657CCF

Accessibility & contrast

On white

9.32
#2C418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C418E
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C418E#FFFFFF#000000##FFFFFF
##2C418E1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4B91
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2c418e;
/* rgb */ color: rgb(44, 65, 142);
/* oklch */ color: oklch(40.4% 0.130 268.5);
Tailwind
colors: {
  custom: {
    50: '#7175b0',
    500: '#2c418e',
    950: '#000000',
  },
}
SCSS
$custom: #2c418e;
$custom-light: #7175b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c418e",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 227.143,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4042,
    "c": 0.13003,
    "h": 268.5
  },
  "luminance": 0.06269
}

Semantic roles & 50–950 ramp

primary
#2C418E
secondary
#B6A360
accent
#BD4CDC
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2C418E

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

Preview Lab → · Contrast checker → · Palette generator →

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