#2A45A6#2A45A6

#2A45A6 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.1% C 0.159 H 267.4°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#2A45A6
RGBrgb(42, 69, 166)
HSLhsl(227, 60%, 41%)
HSVhsv(227, 75%, 65%)
CMYKcmyk(74.7%, 58.4%, 0%, 34.9%)
CIE-LABlab(32.92, 24.89, -55.21)
CIE-LCHlch(32.92, 60.56, 294.27°)
OKLaboklab(43.11% -0.0073 -0.1593)
OKLCHoklch(43.11% 0.159 267.4)
XYZxyz(9.9635, 7.5006, 36.9917)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45A6 #A68B2A
analogous
#2A83A6 #2A45A6 #4D2AA6
triadic
#2A45A6 #A62A45 #45A62A
tetradic
#2A45A6 #A62A83 #A68B2A #2AA64D
square
#2A45A6 #A62A83 #A68B2A #2AA64D
split-complementary
#2A45A6 #A64D2A #83A62A
monochromatic
#111C44 #1E3175 #2A45A6 #3F5ECE #7087DB

Accessibility & contrast

On white

8.40
#2A45A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2A45A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45A6
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45A6#FFFFFF#000000##FFFFFF
##2A45A61.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a45a6;
/* rgb */ color: rgb(42, 69, 166);
/* oklch */ color: oklch(43.1% 0.159 267.4);
Tailwind
colors: {
  custom: {
    50: '#7678c1',
    500: '#2a45a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a45a6;
$custom-light: #7678c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45a6",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 226.935,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43109,
    "c": 0.15946,
    "h": 267.4
  },
  "luminance": 0.07502
}

Semantic roles & 50–950 ramp

primary
#2A45A6
secondary
#C2AF6A
accent
#C045E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A45A6

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

Preview Lab → · Contrast checker → · Palette generator →

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