#2C45AF#2C45AF

#2C45AF is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.0% C 0.171 H 268.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#2C45AF
RGBrgb(44, 69, 175)
HSLhsl(229, 60%, 43%)
HSVhsv(229, 75%, 69%)
CMYKcmyk(74.9%, 60.6%, 0%, 31.4%)
CIE-LABlab(33.74, 28.52, -59.24)
CIE-LCHlch(33.74, 65.75, 295.71°)
OKLaboklab(43.98% -0.0053 -0.1711)
OKLCHoklch(43.98% 0.171 268.2)
XYZxyz(10.9020, 7.8857, 41.4967)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45AF #AF962C
analogous
#2C86AF #2C45AF #552CAF
triadic
#2C45AF #AF2C45 #45AF2C
tetradic
#2C45AF #AF2C86 #AF962C #2CAF55
square
#2C45AF #AF2C86 #AF962C #2CAF55
split-complementary
#2C45AF #AF552C #86AF2C
monochromatic
#131E4D #20327E #2C45AF #4762D1 #788CDD

Accessibility & contrast

On white

8.15
#2C45AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2C45AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45AF
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45AF#FFFFFF#000000##FFFFFF
##2C45AF1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c45af;
/* rgb */ color: rgb(44, 69, 175);
/* oklch */ color: oklch(44.0% 0.171 268.2);
Tailwind
colors: {
  custom: {
    50: '#7978c8',
    500: '#2c45af',
    950: '#000000',
  },
}
SCSS
$custom: #2c45af;
$custom-light: #7978c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45af",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 228.55,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43976,
    "c": 0.17116,
    "h": 268.2
  },
  "luminance": 0.07887
}

Semantic roles & 50–950 ramp

primary
#2C45AF
secondary
#C5B572
accent
#C545E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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