#2C45B5#2C45B5

#2C45B5 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.5% C 0.179 H 268.3°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#2C45B5
RGBrgb(44, 69, 181)
HSLhsl(229, 61%, 44%)
HSVhsv(229, 76%, 71%)
CMYKcmyk(75.7%, 61.9%, 0%, 29%)
CIE-LABlab(34.25, 30.76, -61.98)
CIE-LCHlch(34.25, 69.19, 296.39°)
OKLaboklab(44.5% -0.0053 -0.1791)
OKLCHoklch(44.5% 0.179 268.3)
XYZxyz(11.5044, 8.1267, 44.6694)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45B5 #B59C2C
analogous
#2C8AB5 #2C45B5 #582CB5
triadic
#2C45B5 #B52C45 #45B52C
tetradic
#2C45B5 #B52C8A #B59C2C #2CB558
square
#2C45B5 #B52C8A #B59C2C #2CB558
split-complementary
#2C45B5 #B5582C #8AB52C
monochromatic
#141F53 #203284 #2C45B5 #4B64D3 #7C8EDF

Accessibility & contrast

On white

8.00
#2C45B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2C45B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45B5
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45B5#FFFFFF#000000##FFFFFF
##2C45B51.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c45b5;
/* rgb */ color: rgb(44, 69, 181);
/* oklch */ color: oklch(44.5% 0.179 268.3);
Tailwind
colors: {
  custom: {
    50: '#7a78cc',
    500: '#2c45b5',
    950: '#000000',
  },
}
SCSS
$custom: #2c45b5;
$custom-light: #7a78cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45b5",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 181
  },
  "hsl": {
    "h": 229.051,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44504,
    "c": 0.1792,
    "h": 268.3
  },
  "luminance": 0.08128
}

Semantic roles & 50–950 ramp

primary
#2C45B5
secondary
#C8B975
accent
#C744E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2C45B5

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

Preview Lab → · Contrast checker → · Palette generator →

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