#2C417F#2C417F

#2C417F is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.108 H 267.3°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2C417F
RGBrgb(44, 65, 127)
HSLhsl(225, 49%, 34%)
HSVhsv(225, 65%, 50%)
CMYKcmyk(65.4%, 48.8%, 0%, 50.2%)
CIE-LABlab(29.03, 13.07, -37.64)
CIE-LCHlch(29.03, 39.85, 289.15°)
OKLaboklab(39.28% -0.0051 -0.1076)
OKLCHoklch(39.28% 0.108 267.3)
XYZxyz(6.7585, 5.8478, 20.8471)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C417F #7F6A2C
analogous
#2C6A7F #2C417F #402C7F
triadic
#2C417F #7F2C41 #417F2C
tetradic
#2C417F #7F2C6A #7F6A2C #2C7F40
square
#2C417F #7F2C6A #7F6A2C #2C7F40
split-complementary
#2C417F #7F402C #6A7F2C
monochromatic
#0D1224 #1C2A52 #2C417F #3C58AC #5E79C7

Accessibility & contrast

On white

9.68
#2C417F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2C417F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C417F
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C417F#FFFFFF#000000##FFFFFF
##2C417F1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224881
Deuteranopia (green-blind)
#13417E
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c417f;
/* rgb */ color: rgb(44, 65, 127);
/* oklch */ color: oklch(39.3% 0.108 267.3);
Tailwind
colors: {
  custom: {
    50: '#6e75a4',
    500: '#2c417f',
    950: '#000000',
  },
}
SCSS
$custom: #2c417f;
$custom-light: #6e75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c417f",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 224.819,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39282,
    "c": 0.10776,
    "h": 267.3
  },
  "luminance": 0.05848
}

Semantic roles & 50–950 ramp

primary
#2C417F
secondary
#AD9859
accent
#B650D8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2C417F

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

Preview Lab → · Contrast checker → · Palette generator →

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