#2A45A4#2A45A4

#2A45A4 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.9% C 0.157 H 267.3°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#2A45A4
RGBrgb(42, 69, 164)
HSLhsl(227, 59%, 40%)
HSVhsv(227, 74%, 64%)
CMYKcmyk(74.4%, 57.9%, 0%, 35.7%)
CIE-LABlab(32.76, 24.13, -54.27)
CIE-LCHlch(32.76, 59.39, 293.97°)
OKLaboklab(42.94% -0.0074 -0.1565)
OKLCHoklch(42.94% 0.157 267.3)
XYZxyz(9.7815, 7.4278, 36.0330)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45A4 #A4892A
analogous
#2A82A4 #2A45A4 #4C2AA4
triadic
#2A45A4 #A42A45 #45A42A
tetradic
#2A45A4 #A42A82 #A4892A #2AA44C
square
#2A45A4 #A42A82 #A4892A #2AA44C
split-complementary
#2A45A4 #A44C2A #82A42A
monochromatic
#111C43 #1E3173 #2A45A4 #3E5ECD #6E86DA

Accessibility & contrast

On white

8.45
#2A45A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A45A4
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45A4#FFFFFF#000000##FFFFFF
##2A45A41.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#005D6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a45a4;
/* rgb */ color: rgb(42, 69, 164);
/* oklch */ color: oklch(42.9% 0.157 267.3);
Tailwind
colors: {
  custom: {
    50: '#7578c0',
    500: '#2a45a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a45a4;
$custom-light: #7578c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45a4",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 226.721,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4294,
    "c": 0.15669,
    "h": 267.3
  },
  "luminance": 0.07429
}

Semantic roles & 50–950 ramp

primary
#2A45A4
secondary
#C1AD69
accent
#C045E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A45A4

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

Preview Lab → · Contrast checker → · Palette generator →

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