#2C45B3#2C45B3

#2C45B3 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.3% C 0.177 H 268.3°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#2C45B3
RGBrgb(44, 69, 179)
HSLhsl(229, 61%, 44%)
HSVhsv(229, 75%, 70%)
CMYKcmyk(75.4%, 61.5%, 0%, 29.8%)
CIE-LABlab(34.08, 30.01, -61.07)
CIE-LCHlch(34.08, 68.05, 296.17°)
OKLaboklab(44.33% -0.0053 -0.1765)
OKLCHoklch(44.33% 0.177 268.3)
XYZxyz(11.3007, 8.0452, 43.5964)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45B3 #B39A2C
analogous
#2C88B3 #2C45B3 #562CB3
triadic
#2C45B3 #B32C45 #45B32C
tetradic
#2C45B3 #B32C88 #B39A2C #2CB356
square
#2C45B3 #B32C88 #B39A2C #2CB356
split-complementary
#2C45B3 #B3562C #88B32C
monochromatic
#141F51 #203282 #2C45B3 #4A63D2 #7B8DDF

Accessibility & contrast

On white

8.05
#2C45B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2C45B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45B3
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45B3#FFFFFF#000000##FFFFFF
##2C45B31.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B7
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2c45b3;
/* rgb */ color: rgb(44, 69, 179);
/* oklch */ color: oklch(44.3% 0.177 268.3);
Tailwind
colors: {
  custom: {
    50: '#7978cb',
    500: '#2c45b3',
    950: '#000000',
  },
}
SCSS
$custom: #2c45b3;
$custom-light: #7978cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45b3",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 179
  },
  "hsl": {
    "h": 228.889,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44327,
    "c": 0.17654,
    "h": 268.3
  },
  "luminance": 0.08046
}

Semantic roles & 50–950 ramp

primary
#2C45B3
secondary
#C7B774
accent
#C644E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2C45B3

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

Preview Lab → · Contrast checker → · Palette generator →

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