#2A45B5#2A45B5

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

Color values

HEX#2A45B5
RGBrgb(42, 69, 181)
HSLhsl(228, 62%, 44%)
HSVhsv(228, 77%, 71%)
CMYKcmyk(76.8%, 61.9%, 0%, 29%)
CIE-LABlab(34.16, 30.54, -62.13)
CIE-LCHlch(34.16, 69.23, 296.18°)
OKLaboklab(44.41% -0.0071 -0.1796)
OKLCHoklch(44.41% 0.18 267.7)
XYZxyz(11.4206, 8.0834, 44.6655)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45B5 #B59A2A
analogous
#2A8AB5 #2A45B5 #542AB5
triadic
#2A45B5 #B52A45 #45B52A
tetradic
#2A45B5 #B52A8A #B59A2A #2AB554
square
#2A45B5 #B52A8A #B59A2A #2AB554
split-complementary
#2A45B5 #B5542A #8AB52A
monochromatic
#131F52 #1E3283 #2A45B5 #4863D4 #798DE0

Accessibility & contrast

On white

8.02
#2A45B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2A45B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45B5
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45B5#FFFFFF#000000##FFFFFF
##2A45B51.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a45b5;
/* rgb */ color: rgb(42, 69, 181);
/* oklch */ color: oklch(44.4% 0.180 267.7);
Tailwind
colors: {
  custom: {
    50: '#7978cc',
    500: '#2a45b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a45b5;
$custom-light: #7978cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45b5",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 181
  },
  "hsl": {
    "h": 228.345,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44414,
    "c": 0.17974,
    "h": 267.7
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#2A45B5
secondary
#C8B773
accent
#C642E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2A45B5

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

Preview Lab → · Contrast checker → · Palette generator →

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