#2A45A3#2A45A3

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

Color values

HEX#2A45A3
RGBrgb(42, 69, 163)
HSLhsl(227, 59%, 40%)
HSVhsv(227, 74%, 64%)
CMYKcmyk(74.2%, 57.7%, 0%, 36.1%)
CIE-LABlab(32.68, 23.75, -53.79)
CIE-LCHlch(32.68, 58.80, 293.82°)
OKLaboklab(42.86% -0.0074 -0.1551)
OKLCHoklch(42.86% 0.155 267.3)
XYZxyz(9.6915, 7.3918, 35.5592)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45A3 #A3882A
analogous
#2A81A3 #2A45A3 #4C2AA3
triadic
#2A45A3 #A32A45 #45A32A
tetradic
#2A45A3 #A32A81 #A3882A #2AA34C
square
#2A45A3 #A32A81 #A3882A #2AA34C
split-complementary
#2A45A3 #A34C2A #81A32A
monochromatic
#111C42 #1D3072 #2A45A3 #3D5DCD #6E86DA

Accessibility & contrast

On white

8.47
#2A45A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2A45A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45A3
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45A3#FFFFFF#000000##FFFFFF
##2A45A31.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#005C6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a45a3;
/* rgb */ color: rgb(42, 69, 163);
/* oklch */ color: oklch(42.9% 0.155 267.3);
Tailwind
colors: {
  custom: {
    50: '#7578bf',
    500: '#2a45a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a45a3;
$custom-light: #7578bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45a3",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 163
  },
  "hsl": {
    "h": 226.612,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42856,
    "c": 0.15531,
    "h": 267.3
  },
  "luminance": 0.07393
}

Semantic roles & 50–950 ramp

primary
#2A45A3
secondary
#C0AD68
accent
#BF46E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A45A3

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

Preview Lab → · Contrast checker → · Palette generator →

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