#2A45AA#2A45AA

#2A45AA is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.5% C 0.165 H 267.5°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#2A45AA
RGBrgb(42, 69, 170)
HSLhsl(227, 60%, 42%)
HSVhsv(227, 75%, 67%)
CMYKcmyk(75.3%, 59.4%, 0%, 33.3%)
CIE-LABlab(33.24, 26.41, -57.08)
CIE-LCHlch(33.24, 62.89, 294.83°)
OKLaboklab(43.45% -0.0072 -0.1648)
OKLCHoklch(43.45% 0.165 267.5)
XYZxyz(10.3361, 7.6496, 38.9542)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45AA #AA8F2A
analogous
#2A85AA #2A45AA #4F2AAA
triadic
#2A45AA #AA2A45 #45AA2A
tetradic
#2A45AA #AA2A85 #AA8F2A #2AAA4F
square
#2A45AA #AA2A85 #AA8F2A #2AAA4F
split-complementary
#2A45AA #AA4F2A #85AA2A
monochromatic
#121D48 #1E3179 #2A45AA #415FD0 #7289DC

Accessibility & contrast

On white

8.30
#2A45AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2A45AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45AA
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45AA#FFFFFF#000000##FFFFFF
##2A45AA1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a45aa;
/* rgb */ color: rgb(42, 69, 170);
/* oklch */ color: oklch(43.5% 0.165 267.5);
Tailwind
colors: {
  custom: {
    50: '#7778c4',
    500: '#2a45aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a45aa;
$custom-light: #7778c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45aa",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 227.344,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4345,
    "c": 0.16494,
    "h": 267.5
  },
  "luminance": 0.07651
}

Semantic roles & 50–950 ramp

primary
#2A45AA
secondary
#C3B16C
accent
#C244E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A45AA

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

Preview Lab → · Contrast checker → · Palette generator →

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