#2C45AE#2C45AE

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

Color values

HEX#2C45AE
RGBrgb(44, 69, 174)
HSLhsl(228, 60%, 43%)
HSVhsv(228, 75%, 68%)
CMYKcmyk(74.7%, 60.3%, 0%, 31.8%)
CIE-LABlab(33.66, 28.15, -58.78)
CIE-LCHlch(33.66, 65.17, 295.59°)
OKLaboklab(43.89% -0.0053 -0.1697)
OKLCHoklch(43.89% 0.17 268.2)
XYZxyz(10.8042, 7.8465, 40.9813)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45AE #AE952C
analogous
#2C86AE #2C45AE #542CAE
triadic
#2C45AE #AE2C45 #45AE2C
tetradic
#2C45AE #AE2C86 #AE952C #2CAE54
square
#2C45AE #AE2C86 #AE952C #2CAE54
split-complementary
#2C45AE #AE542C #86AE2C
monochromatic
#131E4C #20327D #2C45AE #4761D0 #788BDD

Accessibility & contrast

On white

8.17
#2C45AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2C45AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45AE
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45AE#FFFFFF#000000##FFFFFF
##2C45AE1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B1
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c45ae;
/* rgb */ color: rgb(44, 69, 174);
/* oklch */ color: oklch(43.9% 0.170 268.2);
Tailwind
colors: {
  custom: {
    50: '#7878c7',
    500: '#2c45ae',
    950: '#000000',
  },
}
SCSS
$custom: #2c45ae;
$custom-light: #7878c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45ae",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 228.462,
    "s": 59.633,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4389,
    "c": 0.16981,
    "h": 268.2
  },
  "luminance": 0.07848
}

Semantic roles & 50–950 ramp

primary
#2C45AE
secondary
#C5B571
accent
#C445E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C45AE

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

Preview Lab → · Contrast checker → · Palette generator →

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