#2C45A3#2C45A3

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

Color values

HEX#2C45A3
RGBrgb(44, 69, 163)
HSLhsl(227, 57%, 41%)
HSVhsv(227, 73%, 64%)
CMYKcmyk(73%, 57.7%, 0%, 36.1%)
CIE-LABlab(32.78, 24.01, -53.64)
CIE-LCHlch(32.78, 58.77, 294.12°)
OKLaboklab(42.95% -0.0056 -0.1546)
OKLCHoklch(42.95% 0.155 267.9)
XYZxyz(9.7754, 7.4350, 35.5632)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C45A3 #A38A2C
analogous
#2C80A3 #2C45A3 #4E2CA3
triadic
#2C45A3 #A32C45 #45A32C
tetradic
#2C45A3 #A32C80 #A38A2C #2CA34E
square
#2C45A3 #A32C80 #A38A2C #2CA34E
split-complementary
#2C45A3 #A34E2C #80A32C
monochromatic
#121C43 #1F3173 #2C45A3 #415ECC #7187D9

Accessibility & contrast

On white

8.44
#2C45A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2C45A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C45A3
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C45A3#FFFFFF#000000##FFFFFF
##2C45A31.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#005C6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2c45a3;
/* rgb */ color: rgb(44, 69, 163);
/* oklch */ color: oklch(43.0% 0.155 267.9);
Tailwind
colors: {
  custom: {
    50: '#7678bf',
    500: '#2c45a3',
    950: '#000000',
  },
}
SCSS
$custom: #2c45a3;
$custom-light: #7678bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c45a3",
  "rgb": {
    "r": 44,
    "g": 69,
    "b": 163
  },
  "hsl": {
    "h": 227.395,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42953,
    "c": 0.15472,
    "h": 267.9
  },
  "luminance": 0.07436
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C45A3

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

Preview Lab → · Contrast checker → · Palette generator →

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