#2C45B1#2C45B1

#2C45B1 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.2% C 0.174 H 268.2°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#2C45B1
RGBrgb(44, 69, 177)
HSLhsl(229, 60%, 43%)
HSVhsv(229, 75%, 69%)
CMYKcmyk(75.1%, 61%, 0%, 30.6%)
CIE-LABlab(33.91, 29.27, -60.16)
CIE-LCHlch(33.91, 66.90, 295.95°)
OKLaboklab(44.15% -0.0053 -0.1738)
OKLCHoklch(44.15% 0.174 268.2)
XYZxyz(11.0999, 7.9648, 42.5388)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45B1 #B1982C
analogous
#2C87B1 #2C45B1 #552CB1
triadic
#2C45B1 #B12C45 #45B12C
tetradic
#2C45B1 #B12C87 #B1982C #2CB155
square
#2C45B1 #B12C87 #B1982C #2CB155
split-complementary
#2C45B1 #B1552C #87B12C
monochromatic
#141F4F #203280 #2C45B1 #4962D2 #7A8CDE

Accessibility & contrast

On white

8.10
#2C45B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2C45B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45B1
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45B1#FFFFFF#000000##FFFFFF
##2C45B11.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#006174
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2c45b1;
/* rgb */ color: rgb(44, 69, 177);
/* oklch */ color: oklch(44.2% 0.174 268.2);
Tailwind
colors: {
  custom: {
    50: '#7978c9',
    500: '#2c45b1',
    950: '#000000',
  },
}
SCSS
$custom: #2c45b1;
$custom-light: #7978c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45b1",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 177
  },
  "hsl": {
    "h": 228.722,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44151,
    "c": 0.17386,
    "h": 268.2
  },
  "luminance": 0.07966
}

Semantic roles & 50–950 ramp

primary
#2C45B1
secondary
#C6B673
accent
#C544E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C45B1

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

Preview Lab → · Contrast checker → · Palette generator →

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