#2A45AD#2A45AD

#2A45AD is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.169 H 267.6°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2A45AD
RGBrgb(42, 69, 173)
HSLhsl(228, 61%, 42%)
HSVhsv(228, 76%, 68%)
CMYKcmyk(75.7%, 60.1%, 0%, 32.2%)
CIE-LABlab(33.49, 27.54, -58.47)
CIE-LCHlch(33.49, 64.63, 295.22°)
OKLaboklab(43.71% -0.0071 -0.1689)
OKLCHoklch(43.71% 0.169 267.6)
XYZxyz(10.6232, 7.7645, 40.4659)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45AD #AD922A
analogous
#2A86AD #2A45AD #512AAD
triadic
#2A45AD #AD2A45 #45AD2A
tetradic
#2A45AD #AD2A86 #AD922A #2AAD51
square
#2A45AD #AD2A86 #AD922A #2AAD51
split-complementary
#2A45AD #AD512A #86AD2A
monochromatic
#121E4B #1E317C #2A45AD #4360D1 #748ADD

Accessibility & contrast

On white

8.22
#2A45AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A45AD
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45AD#FFFFFF#000000##FFFFFF
##2A45AD1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#0049AB
Tritanopia (blue-blind)
#005F72
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a45ad;
/* rgb */ color: rgb(42, 69, 173);
/* oklch */ color: oklch(43.7% 0.169 267.6);
Tailwind
colors: {
  custom: {
    50: '#7778c6',
    500: '#2a45ad',
    950: '#000000',
  },
}
SCSS
$custom: #2a45ad;
$custom-light: #7778c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45ad",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 173
  },
  "hsl": {
    "h": 227.634,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43709,
    "c": 0.16902,
    "h": 267.6
  },
  "luminance": 0.07766
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A45AD

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

Preview Lab → · Contrast checker → · Palette generator →

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