#2A45AE#2A45AE

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

Color values

HEX#2A45AE
RGBrgb(42, 69, 174)
HSLhsl(228, 61%, 42%)
HSVhsv(228, 76%, 68%)
CMYKcmyk(75.9%, 60.3%, 0%, 31.8%)
CIE-LABlab(33.57, 27.92, -58.93)
CIE-LCHlch(33.57, 65.21, 295.35°)
OKLaboklab(43.8% -0.0071 -0.1702)
OKLCHoklch(43.8% 0.17 267.6)
XYZxyz(10.7203, 7.8033, 40.9774)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45AE #AE932A
analogous
#2A87AE #2A45AE #512AAE
triadic
#2A45AE #AE2A45 #45AE2A
tetradic
#2A45AE #AE2A87 #AE932A #2AAE51
square
#2A45AE #AE2A87 #AE932A #2AAE51
split-complementary
#2A45AE #AE512A #87AE2A
monochromatic
#121E4B #1E317D #2A45AE #4361D2 #758ADE

Accessibility & contrast

On white

8.20
#2A45AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2A45AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45AE
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45AE#FFFFFF#000000##FFFFFF
##2A45AE1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B1
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a45ae;
/* rgb */ color: rgb(42, 69, 174);
/* oklch */ color: oklch(43.8% 0.170 267.6);
Tailwind
colors: {
  custom: {
    50: '#7878c7',
    500: '#2a45ae',
    950: '#000000',
  },
}
SCSS
$custom: #2a45ae;
$custom-light: #7878c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45ae",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 227.727,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43796,
    "c": 0.17037,
    "h": 267.6
  },
  "luminance": 0.07804
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A45AE

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

Preview Lab → · Contrast checker → · Palette generator →

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