#2C45A6#2C45A6

#2C45A6 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.2% C 0.159 H 268.0°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2C45A6
RGBrgb(44, 69, 166)
HSLhsl(228, 58%, 41%)
HSVhsv(228, 73%, 65%)
CMYKcmyk(73.5%, 58.4%, 0%, 34.9%)
CIE-LABlab(33.01, 25.15, -55.05)
CIE-LCHlch(33.01, 60.52, 294.55°)
OKLaboklab(43.21% -0.0055 -0.1588)
OKLCHoklch(43.21% 0.159 268)
XYZxyz(10.0474, 7.5438, 36.9956)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45A6 #A68D2C
analogous
#2C82A6 #2C45A6 #502CA6
triadic
#2C45A6 #A62C45 #45A62C
tetradic
#2C45A6 #A62C82 #A68D2C #2CA650
square
#2C45A6 #A62C82 #A68D2C #2CA650
split-complementary
#2C45A6 #A6502C #82A62C
monochromatic
#121D45 #1F3176 #2C45A6 #425FCD #7388DA

Accessibility & contrast

On white

8.37
#2C45A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2C45A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45A6
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45A6#FFFFFF#000000##FFFFFF
##2C45A61.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c45a6;
/* rgb */ color: rgb(44, 69, 166);
/* oklch */ color: oklch(43.2% 0.159 268.0);
Tailwind
colors: {
  custom: {
    50: '#7678c1',
    500: '#2c45a6',
    950: '#000000',
  },
}
SCSS
$custom: #2c45a6;
$custom-light: #7678c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45a6",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 227.705,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43205,
    "c": 0.15888,
    "h": 268
  },
  "luminance": 0.07545
}

Semantic roles & 50–950 ramp

primary
#2C45A6
secondary
#C1B06D
accent
#C246E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2C45A6

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

Preview Lab → · Contrast checker → · Palette generator →

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