#2A45B6#2A45B6

#2A45B6 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.5% C 0.181 H 267.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#2A45B6
RGBrgb(42, 69, 182)
HSLhsl(228, 63%, 44%)
HSVhsv(228, 77%, 71%)
CMYKcmyk(76.9%, 62.1%, 0%, 28.6%)
CIE-LABlab(34.24, 30.91, -62.58)
CIE-LCHlch(34.24, 69.80, 296.29°)
OKLaboklab(44.5% -0.0071 -0.1809)
OKLCHoklch(44.5% 0.181 267.7)
XYZxyz(11.5235, 8.1246, 45.2078)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45B6 #B69B2A
analogous
#2A8BB6 #2A45B6 #552AB6
triadic
#2A45B6 #B62A45 #45B62A
tetradic
#2A45B6 #B62A8B #B69B2A #2AB655
square
#2A45B6 #B62A8B #B69B2A #2AB655
split-complementary
#2A45B6 #B6552A #8BB62A
monochromatic
#131F53 #1F3284 #2A45B6 #4863D5 #7A8EE0

Accessibility & contrast

On white

8.00
#2A45B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2A45B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45B6
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45B6#FFFFFF#000000##FFFFFF
##2A45B61.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#006277
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a45b6;
/* rgb */ color: rgb(42, 69, 182);
/* oklch */ color: oklch(44.5% 0.181 267.7);
Tailwind
colors: {
  custom: {
    50: '#7a78cd',
    500: '#2a45b6',
    950: '#000000',
  },
}
SCSS
$custom: #2a45b6;
$custom-light: #7a78cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45b6",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 182
  },
  "hsl": {
    "h": 228.429,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44503,
    "c": 0.18107,
    "h": 267.7
  },
  "luminance": 0.08126
}

Semantic roles & 50–950 ramp

primary
#2A45B6
secondary
#C8B873
accent
#C642E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2A45B6

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

Preview Lab → · Contrast checker → · Palette generator →

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