#2C45B7#2C45B7

#2C45B7 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.7% C 0.182 H 268.3°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#2C45B7
RGBrgb(44, 69, 183)
HSLhsl(229, 61%, 45%)
HSVhsv(229, 76%, 72%)
CMYKcmyk(76%, 62.3%, 0%, 28.2%)
CIE-LABlab(34.41, 31.50, -62.88)
CIE-LCHlch(34.41, 70.33, 296.61°)
OKLaboklab(44.68% -0.0054 -0.1818)
OKLCHoklch(44.68% 0.182 268.3)
XYZxyz(11.7111, 8.2093, 45.7579)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45B7 #B79E2C
analogous
#2C8AB7 #2C45B7 #592CB7
triadic
#2C45B7 #B72C45 #45B72C
tetradic
#2C45B7 #B72C8A #B79E2C #2CB759
square
#2C45B7 #B72C8A #B79E2C #2CB759
split-complementary
#2C45B7 #B7592C #8AB72C
monochromatic
#142054 #203286 #2C45B7 #4C65D4 #7E8FE0

Accessibility & contrast

On white

7.95
#2C45B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2C45B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45B7
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45B7#FFFFFF#000000##FFFFFF
##2C45B71.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#006277
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c45b7;
/* rgb */ color: rgb(44, 69, 183);
/* oklch */ color: oklch(44.7% 0.182 268.3);
Tailwind
colors: {
  custom: {
    50: '#7a78ce',
    500: '#2c45b7',
    950: '#000000',
  },
}
SCSS
$custom: #2c45b7;
$custom-light: #7a78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45b7",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 229.209,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44683,
    "c": 0.18185,
    "h": 268.3
  },
  "luminance": 0.08211
}

Semantic roles & 50–950 ramp

primary
#2C45B7
secondary
#C8BA76
accent
#C743E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2C45B7

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

Preview Lab → · Contrast checker → · Palette generator →

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