#2C45AD#2C45AD

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

Color values

HEX#2C45AD
RGBrgb(44, 69, 173)
HSLhsl(228, 59%, 43%)
HSVhsv(228, 75%, 68%)
CMYKcmyk(74.6%, 60.1%, 0%, 32.2%)
CIE-LABlab(33.58, 27.78, -58.32)
CIE-LCHlch(33.58, 64.59, 295.47°)
OKLaboklab(43.8% -0.0053 -0.1684)
OKLCHoklch(43.8% 0.168 268.2)
XYZxyz(10.7070, 7.8077, 40.4698)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45AD #AD942C
analogous
#2C86AD #2C45AD #532CAD
triadic
#2C45AD #AD2C45 #45AD2C
tetradic
#2C45AD #AD2C86 #AD942C #2CAD53
square
#2C45AD #AD2C86 #AD942C #2CAD53
split-complementary
#2C45AD #AD532C #86AD2C
monochromatic
#131E4B #20327C #2C45AD #4661D0 #778BDC

Accessibility & contrast

On white

8.20
#2C45AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2C45AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45AD
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45AD#FFFFFF#000000##FFFFFF
##2C45AD1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#0049AB
Tritanopia (blue-blind)
#005F72
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c45ad;
/* rgb */ color: rgb(44, 69, 173);
/* oklch */ color: oklch(43.8% 0.168 268.2);
Tailwind
colors: {
  custom: {
    50: '#7878c6',
    500: '#2c45ad',
    950: '#000000',
  },
}
SCSS
$custom: #2c45ad;
$custom-light: #7878c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45ad",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 173
  },
  "hsl": {
    "h": 228.372,
    "s": 59.447,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43803,
    "c": 0.16846,
    "h": 268.2
  },
  "luminance": 0.07809
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C45AD

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

Preview Lab → · Contrast checker → · Palette generator →

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