#2A45A9#2A45A9

#2A45A9 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.4% C 0.164 H 267.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#2A45A9
RGBrgb(42, 69, 169)
HSLhsl(227, 60%, 41%)
HSVhsv(227, 75%, 66%)
CMYKcmyk(75.1%, 59.2%, 0%, 33.7%)
CIE-LABlab(33.16, 26.03, -56.61)
CIE-LCHlch(33.16, 62.31, 294.69°)
OKLaboklab(43.36% -0.0072 -0.1634)
OKLCHoklch(43.36% 0.164 267.5)
XYZxyz(10.2419, 7.6119, 38.4579)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45A9 #A98E2A
analogous
#2A85A9 #2A45A9 #4F2AA9
triadic
#2A45A9 #A92A45 #45A92A
tetradic
#2A45A9 #A92A85 #A98E2A #2AA94F
square
#2A45A9 #A92A85 #A98E2A #2AA94F
split-complementary
#2A45A9 #A94F2A #85A92A
monochromatic
#121D47 #1E3178 #2A45A9 #415FD0 #7288DC

Accessibility & contrast

On white

8.32
#2A45A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2A45A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45A9
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45A9#FFFFFF#000000##FFFFFF
##2A45A91.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#0048A7
Tritanopia (blue-blind)
#005E70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a45a9;
/* rgb */ color: rgb(42, 69, 169);
/* oklch */ color: oklch(43.4% 0.164 267.5);
Tailwind
colors: {
  custom: {
    50: '#7678c3',
    500: '#2a45a9',
    950: '#000000',
  },
}
SCSS
$custom: #2a45a9;
$custom-light: #7678c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45a9",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 169
  },
  "hsl": {
    "h": 227.244,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43364,
    "c": 0.16358,
    "h": 267.5
  },
  "luminance": 0.07613
}

Semantic roles & 50–950 ramp

primary
#2A45A9
secondary
#C3B06C
accent
#C244E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A45A9

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

Preview Lab → · Contrast checker → · Palette generator →

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