#2C45AB#2C45AB

#2C45AB is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.6% C 0.166 H 268.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2C45AB
RGBrgb(44, 69, 171)
HSLhsl(228, 59%, 42%)
HSVhsv(228, 74%, 67%)
CMYKcmyk(74.3%, 59.6%, 0%, 32.9%)
CIE-LABlab(33.42, 27.03, -57.39)
CIE-LCHlch(33.42, 63.44, 295.22°)
OKLaboklab(43.63% -0.0053 -0.1656)
OKLCHoklch(43.63% 0.166 268.2)
XYZxyz(10.5150, 7.7309, 39.4582)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45AB #AB922C
analogous
#2C85AB #2C45AB #532CAB
triadic
#2C45AB #AB2C45 #45AB2C
tetradic
#2C45AB #AB2C85 #AB922C #2CAB53
square
#2C45AB #AB2C85 #AB922C #2CAB53
split-complementary
#2C45AB #AB532C #85AB2C
monochromatic
#131E4A #1F317A #2C45AB #4560CF #768ADC

Accessibility & contrast

On white

8.25
#2C45AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C45AB
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45AB#FFFFFF#000000##FFFFFF
##2C45AB1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c45ab;
/* rgb */ color: rgb(44, 69, 171);
/* oklch */ color: oklch(43.6% 0.166 268.2);
Tailwind
colors: {
  custom: {
    50: '#7878c5',
    500: '#2c45ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c45ab;
$custom-light: #7878c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45ab",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 228.189,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4363,
    "c": 0.16574,
    "h": 268.2
  },
  "luminance": 0.07732
}

Semantic roles & 50–950 ramp

primary
#2C45AB
secondary
#C3B36F
accent
#C346E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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