#2A45A0#2A45A0

#2A45A0 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.151 H 267.1°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#2A45A0
RGBrgb(42, 69, 160)
HSLhsl(226, 58%, 40%)
HSVhsv(226, 74%, 63%)
CMYKcmyk(73.8%, 56.9%, 0%, 37.3%)
CIE-LABlab(32.45, 22.61, -52.37)
CIE-LCHlch(32.45, 57.04, 293.35°)
OKLaboklab(42.61% -0.0076 -0.1509)
OKLCHoklch(42.61% 0.151 267.1)
XYZxyz(9.4259, 7.2856, 34.1604)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45A0 #A0852A
analogous
#2A80A0 #2A45A0 #4A2AA0
triadic
#2A45A0 #A02A45 #45A02A
tetradic
#2A45A0 #A02A80 #A0852A #2AA04A
square
#2A45A0 #A02A80 #A0852A #2AA04A
split-complementary
#2A45A0 #A04A2A #80A02A
monochromatic
#111B3F #1D3070 #2A45A0 #3C5DCC #6C85D8

Accessibility & contrast

On white

8.55
#2A45A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A45A0
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45A0#FFFFFF#000000##FFFFFF
##2A45A01.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#005B6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a45a0;
/* rgb */ color: rgb(42, 69, 160);
/* oklch */ color: oklch(42.6% 0.151 267.1);
Tailwind
colors: {
  custom: {
    50: '#7478bd',
    500: '#2a45a0',
    950: '#000000',
  },
}
SCSS
$custom: #2a45a0;
$custom-light: #7478bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45a0",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 160
  },
  "hsl": {
    "h": 226.271,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42607,
    "c": 0.15113,
    "h": 267.1
  },
  "luminance": 0.07287
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A45A0

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

Preview Lab → · Contrast checker → · Palette generator →

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