#2A45B1#2A45B1

#2A45B1 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.1% C 0.174 H 267.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2A45B1
RGBrgb(42, 69, 177)
HSLhsl(228, 62%, 43%)
HSVhsv(228, 76%, 69%)
CMYKcmyk(76.3%, 61%, 0%, 30.6%)
CIE-LABlab(33.82, 29.04, -60.31)
CIE-LCHlch(33.82, 66.94, 295.71°)
OKLaboklab(44.06% -0.0071 -0.1743)
OKLCHoklch(44.06% 0.174 267.7)
XYZxyz(11.0160, 7.9216, 42.5349)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45B1 #B1962A
analogous
#2A88B1 #2A45B1 #522AB1
triadic
#2A45B1 #B12A45 #45B12A
tetradic
#2A45B1 #B12A88 #B1962A #2AB152
square
#2A45B1 #B12A88 #B1962A #2AB152
split-complementary
#2A45B1 #B1522A #88B12A
monochromatic
#131E4E #1E3280 #2A45B1 #4562D3 #778CDF

Accessibility & contrast

On white

8.13
#2A45B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2A45B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45B1
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45B1#FFFFFF#000000##FFFFFF
##2A45B11.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#006174
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a45b1;
/* rgb */ color: rgb(42, 69, 177);
/* oklch */ color: oklch(44.1% 0.174 267.7);
Tailwind
colors: {
  custom: {
    50: '#7878c9',
    500: '#2a45b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a45b1;
$custom-light: #7878c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45b1",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 177
  },
  "hsl": {
    "h": 228,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44059,
    "c": 0.1744,
    "h": 267.7
  },
  "luminance": 0.07923
}

Semantic roles & 50–950 ramp

primary
#2A45B1
secondary
#C6B570
accent
#C443E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A45B1

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

Preview Lab → · Contrast checker → · Palette generator →

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