#2C45A4#2C45A4

#2C45A4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.0% C 0.156 H 268.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2C45A4
RGBrgb(44, 69, 164)
HSLhsl(228, 58%, 41%)
HSVhsv(228, 73%, 64%)
CMYKcmyk(73.2%, 57.9%, 0%, 35.7%)
CIE-LABlab(32.86, 24.39, -54.11)
CIE-LCHlch(32.86, 59.35, 294.27°)
OKLaboklab(43.04% -0.0055 -0.156)
OKLCHoklch(43.04% 0.156 268)
XYZxyz(9.8653, 7.4710, 36.0369)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45A4 #A48B2C
analogous
#2C81A4 #2C45A4 #4F2CA4
triadic
#2C45A4 #A42C45 #45A42C
tetradic
#2C45A4 #A42C81 #A48B2C #2CA44F
square
#2C45A4 #A42C81 #A48B2C #2CA44F
split-complementary
#2C45A4 #A44F2C #81A42C
monochromatic
#121C43 #1F3174 #2C45A4 #415ECC #7187D9

Accessibility & contrast

On white

8.42
#2C45A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2C45A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45A4
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45A4#FFFFFF#000000##FFFFFF
##2C45A41.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#005C6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2c45a4;
/* rgb */ color: rgb(44, 69, 164);
/* oklch */ color: oklch(43.0% 0.156 268.0);
Tailwind
colors: {
  custom: {
    50: '#7678c0',
    500: '#2c45a4',
    950: '#000000',
  },
}
SCSS
$custom: #2c45a4;
$custom-light: #7678c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45a4",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 227.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43037,
    "c": 0.15612,
    "h": 268
  },
  "luminance": 0.07472
}

Semantic roles & 50–950 ramp

primary
#2C45A4
secondary
#C0AF6B
accent
#C147E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2C45A4

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

Preview Lab → · Contrast checker → · Palette generator →

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