#2C45AC#2C45AC

#2C45AC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.167 H 268.2°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2C45AC
RGBrgb(44, 69, 172)
HSLhsl(228, 59%, 42%)
HSVhsv(228, 74%, 67%)
CMYKcmyk(74.4%, 59.9%, 0%, 32.5%)
CIE-LABlab(33.50, 27.40, -57.85)
CIE-LCHlch(33.50, 64.02, 295.34°)
OKLaboklab(43.72% -0.0053 -0.167)
OKLCHoklch(43.72% 0.167 268.2)
XYZxyz(10.6106, 7.7691, 39.9621)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45AC #AC932C
analogous
#2C85AC #2C45AC #532CAC
triadic
#2C45AC #AC2C45 #45AC2C
tetradic
#2C45AC #AC2C85 #AC932C #2CAC53
square
#2C45AC #AC2C85 #AC932C #2CAC53
split-complementary
#2C45AC #AC532C #85AC2C
monochromatic
#131E4B #20317B #2C45AC #4661D0 #768ADC

Accessibility & contrast

On white

8.22
#2C45AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2C45AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45AC
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45AC#FFFFFF#000000##FFFFFF
##2C45AC1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c45ac;
/* rgb */ color: rgb(44, 69, 172);
/* oklch */ color: oklch(43.7% 0.167 268.2);
Tailwind
colors: {
  custom: {
    50: '#7878c6',
    500: '#2c45ac',
    950: '#000000',
  },
}
SCSS
$custom: #2c45ac;
$custom-light: #7878c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45ac",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 228.281,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43716,
    "c": 0.16711,
    "h": 268.2
  },
  "luminance": 0.0777
}

Semantic roles & 50–950 ramp

primary
#2C45AC
secondary
#C4B370
accent
#C445E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C45AC

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

Preview Lab → · Contrast checker → · Palette generator →

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