#2C418F#2C418F

#2C418F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.131 H 268.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2C418F
RGBrgb(44, 65, 143)
HSLhsl(227, 53%, 37%)
HSVhsv(227, 69%, 56%)
CMYKcmyk(69.2%, 54.5%, 0%, 43.9%)
CIE-LABlab(30.15, 19.13, -45.74)
CIE-LCHlch(30.15, 49.58, 292.70°)
OKLaboklab(40.5% -0.0033 -0.1314)
OKLCHoklch(40.5% 0.131 268.6)
XYZxyz(7.8852, 6.2985, 26.7815)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C418F #8F7A2C
analogous
#2C738F #2C418F #492C8F
triadic
#2C418F #8F2C41 #418F2C
tetradic
#2C418F #8F2C73 #8F7A2C #2C8F49
square
#2C418F #8F2C73 #8F7A2C #2C8F49
split-complementary
#2C418F #8F492C #738F2C
monochromatic
#0F1631 #1E2C60 #2C418F #3A56BE #667CD0

Accessibility & contrast

On white

9.29
#2C418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2C418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C418F
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C418F#FFFFFF#000000##FFFFFF
##2C418F1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4C92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2c418f;
/* rgb */ color: rgb(44, 65, 143);
/* oklch */ color: oklch(40.5% 0.131 268.6);
Tailwind
colors: {
  custom: {
    50: '#7275b0',
    500: '#2c418f',
    950: '#000000',
  },
}
SCSS
$custom: #2c418f;
$custom-light: #7275b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c418f",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 227.273,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40499,
    "c": 0.13149,
    "h": 268.6
  },
  "luminance": 0.06299
}

Semantic roles & 50–950 ramp

primary
#2C418F
secondary
#B6A461
accent
#BE4BDC
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2C418F

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

Preview Lab → · Contrast checker → · Palette generator →

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