#2C417E#2C417E

#2C417E is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.106 H 267.1°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2C417E
RGBrgb(44, 65, 126)
HSLhsl(225, 48%, 33%)
HSVhsv(225, 65%, 49%)
CMYKcmyk(65.1%, 48.4%, 0%, 50.6%)
CIE-LABlab(28.96, 12.69, -37.13)
CIE-LCHlch(28.96, 39.24, 288.88°)
OKLaboklab(39.21% -0.0053 -0.1061)
OKLCHoklch(39.21% 0.106 267.1)
XYZxyz(6.6936, 5.8218, 20.5056)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C417E #7E692C
analogous
#2C6A7E #2C417E #402C7E
triadic
#2C417E #7E2C41 #417E2C
tetradic
#2C417E #7E2C6A #7E692C #2C7E40
square
#2C417E #7E2C6A #7E692C #2C7E40
split-complementary
#2C417E #7E402C #6A7E2C
monochromatic
#0C1223 #1C2A51 #2C417E #3C58AB #5E79C7

Accessibility & contrast

On white

9.70
#2C417E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2C417E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C417E
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C417E#FFFFFF#000000##FFFFFF
##2C417E1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234880
Deuteranopia (green-blind)
#14417D
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c417e;
/* rgb */ color: rgb(44, 65, 126);
/* oklch */ color: oklch(39.2% 0.106 267.1);
Tailwind
colors: {
  custom: {
    50: '#6e75a4',
    500: '#2c417e',
    950: '#000000',
  },
}
SCSS
$custom: #2c417e;
$custom-light: #6e75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c417e",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 224.634,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39209,
    "c": 0.10625,
    "h": 267.1
  },
  "luminance": 0.05822
}

Semantic roles & 50–950 ramp

primary
#2C417E
secondary
#AD9759
accent
#B550D8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2C417E

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

Preview Lab → · Contrast checker → · Palette generator →

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