#2C45BA#2C45BA

#2C45BA is a dark, vivid blue. Relative luminance 0.083; OKLCH L 45.0% C 0.186 H 268.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#2C45BA
RGBrgb(44, 69, 186)
HSLhsl(229, 62%, 45%)
HSVhsv(229, 76%, 73%)
CMYKcmyk(76.3%, 62.9%, 0%, 27.1%)
CIE-LABlab(34.67, 32.60, -64.23)
CIE-LCHlch(34.67, 72.03, 296.91°)
OKLaboklab(44.95% -0.0054 -0.1857)
OKLCHoklch(44.95% 0.186 268.3)
XYZxyz(12.0267, 8.3356, 47.4199)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45BA #BAA12C
analogous
#2C8CBA #2C45BA #5A2CBA
triadic
#2C45BA #BA2C45 #45BA2C
tetradic
#2C45BA #BA2C8C #BAA12C #2CBA5A
square
#2C45BA #BA2C8C #BAA12C #2CBA5A
split-complementary
#2C45BA #BA5A2C #8CBA2C
monochromatic
#152057 #203389 #2C45BA #4E66D5 #8091E1

Accessibility & contrast

On white

7.87
#2C45BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2C45BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45BA
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45BA#FFFFFF#000000##FFFFFF
##2C45BA1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#006379
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2c45ba;
/* rgb */ color: rgb(44, 69, 186);
/* oklch */ color: oklch(45.0% 0.186 268.3);
Tailwind
colors: {
  custom: {
    50: '#7b78d0',
    500: '#2c45ba',
    950: '#000000',
  },
}
SCSS
$custom: #2c45ba;
$custom-light: #7b78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45ba",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 229.437,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44952,
    "c": 0.18581,
    "h": 268.3
  },
  "luminance": 0.08337
}

Semantic roles & 50–950 ramp

primary
#2C45BA
secondary
#CABB78
accent
#C843E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2C45BA

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

Preview Lab → · Contrast checker → · Palette generator →

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