#2A45B3#2A45B3

#2A45B3 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.2% C 0.177 H 267.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#2A45B3
RGBrgb(42, 69, 179)
HSLhsl(228, 62%, 43%)
HSVhsv(228, 77%, 70%)
CMYKcmyk(76.5%, 61.5%, 0%, 29.8%)
CIE-LABlab(33.99, 29.79, -61.22)
CIE-LCHlch(33.99, 68.09, 295.95°)
OKLaboklab(44.24% -0.0071 -0.1769)
OKLCHoklch(44.24% 0.177 267.7)
XYZxyz(11.2168, 8.0019, 43.5924)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45B3 #B3982A
analogous
#2A89B3 #2A45B3 #532AB3
triadic
#2A45B3 #B32A45 #45B32A
tetradic
#2A45B3 #B32A89 #B3982A #2AB353
square
#2A45B3 #B32A89 #B3982A #2AB353
split-complementary
#2A45B3 #B3532A #89B32A
monochromatic
#131F50 #1E3281 #2A45B3 #4662D4 #788CDF

Accessibility & contrast

On white

8.08
#2A45B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2A45B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45B3
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45B3#FFFFFF#000000##FFFFFF
##2A45B31.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a45b3;
/* rgb */ color: rgb(42, 69, 179);
/* oklch */ color: oklch(44.2% 0.177 267.7);
Tailwind
colors: {
  custom: {
    50: '#7978cb',
    500: '#2a45b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a45b3;
$custom-light: #7978cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45b3",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 179
  },
  "hsl": {
    "h": 228.175,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44236,
    "c": 0.17708,
    "h": 267.7
  },
  "luminance": 0.08003
}

Semantic roles & 50–950 ramp

primary
#2A45B3
secondary
#C7B672
accent
#C543E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2A45B3

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

Preview Lab → · Contrast checker → · Palette generator →

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