#2C45AA#2C45AA

#2C45AA is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.5% C 0.164 H 268.1°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2C45AA
RGBrgb(44, 69, 170)
HSLhsl(228, 59%, 42%)
HSVhsv(228, 74%, 67%)
CMYKcmyk(74.1%, 59.4%, 0%, 33.3%)
CIE-LABlab(33.33, 26.65, -56.92)
CIE-LCHlch(33.33, 62.85, 295.09°)
OKLaboklab(43.55% -0.0054 -0.1643)
OKLCHoklch(43.55% 0.164 268.1)
XYZxyz(10.4200, 7.6929, 38.9581)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45AA #AA912C
analogous
#2C84AA #2C45AA #522CAA
triadic
#2C45AA #AA2C45 #45AA2C
tetradic
#2C45AA #AA2C84 #AA912C #2CAA52
square
#2C45AA #AA2C84 #AA912C #2CAA52
split-complementary
#2C45AA #AA522C #84AA2C
monochromatic
#131E49 #1F3179 #2C45AA #4460CF #7589DB

Accessibility & contrast

On white

8.27
#2C45AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2C45AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45AA
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45AA#FFFFFF#000000##FFFFFF
##2C45AA1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AD
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#005E70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c45aa;
/* rgb */ color: rgb(44, 69, 170);
/* oklch */ color: oklch(43.5% 0.164 268.1);
Tailwind
colors: {
  custom: {
    50: '#7778c4',
    500: '#2c45aa',
    950: '#000000',
  },
}
SCSS
$custom: #2c45aa;
$custom-light: #7778c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45aa",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 228.095,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43545,
    "c": 0.16438,
    "h": 268.1
  },
  "luminance": 0.07694
}

Semantic roles & 50–950 ramp

primary
#2C45AA
secondary
#C3B26F
accent
#C346E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C45AA

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

Preview Lab → · Contrast checker → · Palette generator →

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