#2A45AC#2A45AC

#2A45AC is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.6% C 0.168 H 267.6°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2A45AC
RGBrgb(42, 69, 172)
HSLhsl(228, 61%, 42%)
HSVhsv(228, 76%, 67%)
CMYKcmyk(75.6%, 59.9%, 0%, 32.5%)
CIE-LABlab(33.41, 27.16, -58.01)
CIE-LCHlch(33.41, 64.05, 295.09°)
OKLaboklab(43.62% -0.0071 -0.1675)
OKLCHoklch(43.62% 0.168 267.6)
XYZxyz(10.5268, 7.7259, 39.9582)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45AC #AC912A
analogous
#2A86AC #2A45AC #502AAC
triadic
#2A45AC #AC2A45 #45AC2A
tetradic
#2A45AC #AC2A86 #AC912A #2AAC50
square
#2A45AC #AC2A86 #AC912A #2AAC50
split-complementary
#2A45AC #AC502A #86AC2A
monochromatic
#121E4A #1E317B #2A45AC #4260D1 #7389DD

Accessibility & contrast

On white

8.25
#2A45AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2A45AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45AC
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45AC#FFFFFF#000000##FFFFFF
##2A45AC1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a45ac;
/* rgb */ color: rgb(42, 69, 172);
/* oklch */ color: oklch(43.6% 0.168 267.6);
Tailwind
colors: {
  custom: {
    50: '#7778c6',
    500: '#2a45ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a45ac;
$custom-light: #7778c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45ac",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 227.538,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43623,
    "c": 0.16766,
    "h": 267.6
  },
  "luminance": 0.07727
}

Semantic roles & 50–950 ramp

primary
#2A45AC
secondary
#C4B26D
accent
#C344E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A45AC

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

Preview Lab → · Contrast checker → · Palette generator →

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