#2A45A1#2A45A1

#2A45A1 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.7% C 0.153 H 267.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2A45A1
RGBrgb(42, 69, 161)
HSLhsl(226, 59%, 40%)
HSVhsv(226, 74%, 63%)
CMYKcmyk(73.9%, 57.1%, 0%, 36.9%)
CIE-LABlab(32.53, 22.99, -52.84)
CIE-LCHlch(32.53, 57.63, 293.51°)
OKLaboklab(42.69% -0.0075 -0.1523)
OKLCHoklch(42.69% 0.153 267.2)
XYZxyz(9.5138, 7.3207, 34.6229)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45A1 #A1862A
analogous
#2A80A1 #2A45A1 #4B2AA1
triadic
#2A45A1 #A12A45 #45A12A
tetradic
#2A45A1 #A12A80 #A1862A #2AA14B
square
#2A45A1 #A12A80 #A1862A #2AA14B
split-complementary
#2A45A1 #A14B2A #80A12A
monochromatic
#111B40 #1D3070 #2A45A1 #3C5DCC #6D85D9

Accessibility & contrast

On white

8.52
#2A45A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2A45A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45A1
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45A1#FFFFFF#000000##FFFFFF
##2A45A11.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a45a1;
/* rgb */ color: rgb(42, 69, 161);
/* oklch */ color: oklch(42.7% 0.153 267.2);
Tailwind
colors: {
  custom: {
    50: '#7578be',
    500: '#2a45a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a45a1;
$custom-light: #7578be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45a1",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 161
  },
  "hsl": {
    "h": 226.387,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4269,
    "c": 0.15253,
    "h": 267.2
  },
  "luminance": 0.07322
}

Semantic roles & 50–950 ramp

primary
#2A45A1
secondary
#C0AC67
accent
#BE46E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2A45A1

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

Preview Lab → · Contrast checker → · Palette generator →

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