#2C45A2#2C45A2

#2C45A2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.9% C 0.153 H 267.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#2C45A2
RGBrgb(44, 69, 162)
HSLhsl(227, 57%, 40%)
HSVhsv(227, 73%, 64%)
CMYKcmyk(72.8%, 57.4%, 0%, 36.5%)
CIE-LABlab(32.70, 23.64, -53.16)
CIE-LCHlch(32.70, 58.18, 293.97°)
OKLaboklab(42.87% -0.0056 -0.1532)
OKLCHoklch(42.87% 0.153 267.9)
XYZxyz(9.6862, 7.3993, 35.0932)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45A2 #A2892C
analogous
#2C80A2 #2C45A2 #4E2CA2
triadic
#2C45A2 #A22C45 #45A22C
tetradic
#2C45A2 #A22C80 #A2892C #2CA24E
square
#2C45A2 #A22C80 #A2892C #2CA24E
split-complementary
#2C45A2 #A24E2C #80A22C
monochromatic
#121C42 #1F3172 #2C45A2 #405ECB #7086D8

Accessibility & contrast

On white

8.47
#2C45A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2C45A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45A2
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45A2#FFFFFF#000000##FFFFFF
##2C45A21.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2c45a2;
/* rgb */ color: rgb(44, 69, 162);
/* oklch */ color: oklch(42.9% 0.153 267.9);
Tailwind
colors: {
  custom: {
    50: '#7678be',
    500: '#2c45a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c45a2;
$custom-light: #7678be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45a2",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 227.288,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4287,
    "c": 0.15333,
    "h": 267.9
  },
  "luminance": 0.074
}

Semantic roles & 50–950 ramp

primary
#2C45A2
secondary
#BFAD6A
accent
#C047E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2C45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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