#2A45A2#2A45A2

#2A45A2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.154 H 267.2°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#2A45A2
RGBrgb(42, 69, 162)
HSLhsl(227, 59%, 40%)
HSVhsv(227, 74%, 64%)
CMYKcmyk(74.1%, 57.4%, 0%, 36.5%)
CIE-LABlab(32.60, 23.37, -53.32)
CIE-LCHlch(32.60, 58.22, 293.67°)
OKLaboklab(42.77% -0.0075 -0.1537)
OKLCHoklch(42.77% 0.154 267.2)
XYZxyz(9.6023, 7.3561, 35.0892)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45A2 #A2872A
analogous
#2A81A2 #2A45A2 #4B2AA2
triadic
#2A45A2 #A22A45 #45A22A
tetradic
#2A45A2 #A22A81 #A2872A #2AA24B
square
#2A45A2 #A22A81 #A2872A #2AA24B
split-complementary
#2A45A2 #A24B2A #81A22A
monochromatic
#111C41 #1D3071 #2A45A2 #3D5DCD #6D85D9

Accessibility & contrast

On white

8.50
#2A45A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2A45A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45A2
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45A2#FFFFFF#000000##FFFFFF
##2A45A21.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a45a2;
/* rgb */ color: rgb(42, 69, 162);
/* oklch */ color: oklch(42.8% 0.154 267.2);
Tailwind
colors: {
  custom: {
    50: '#7578be',
    500: '#2a45a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a45a2;
$custom-light: #7578be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45a2",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 226.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.42773,
    "c": 0.15392,
    "h": 267.2
  },
  "luminance": 0.07357
}

Semantic roles & 50–950 ramp

primary
#2A45A2
secondary
#C0AC68
accent
#BF46E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2A45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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