#2A45C2#2A45C2

#2A45C2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.6% C 0.197 H 267.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#2A45C2
RGBrgb(42, 69, 194)
HSLhsl(229, 64%, 46%)
HSVhsv(229, 78%, 76%)
CMYKcmyk(78.4%, 64.4%, 0%, 23.9%)
CIE-LABlab(35.29, 35.34, -67.93)
CIE-LCHlch(35.29, 76.57, 297.49°)
OKLaboklab(45.6% -0.0074 -0.1966)
OKLCHoklch(45.6% 0.197 267.8)
XYZxyz(12.8172, 8.6421, 52.0210)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45C2 #C2A72A
analogous
#2A91C2 #2A45C2 #5B2AC2
triadic
#2A45C2 #C22A45 #45C22A
tetradic
#2A45C2 #C22A91 #C2A72A #2AC25B
square
#2A45C2 #C22A91 #C2A72A #2AC25B
split-complementary
#2A45C2 #C25B2A #91C22A
monochromatic
#14215D #1F3390 #2A45C2 #5068D9 #8294E4

Accessibility & contrast

On white

7.70
#2A45C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2A45C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45C2
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45C2#FFFFFF#000000##FFFFFF
##2A45C21.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#004CC0
Tritanopia (blue-blind)
#00667D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a45c2;
/* rgb */ color: rgb(42, 69, 194);
/* oklch */ color: oklch(45.6% 0.197 267.8);
Tailwind
colors: {
  custom: {
    50: '#7c78d6',
    500: '#2a45c2',
    950: '#000000',
  },
}
SCSS
$custom: #2a45c2;
$custom-light: #7c78d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45c2",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 229.342,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45595,
    "c": 0.19672,
    "h": 267.8
  },
  "luminance": 0.08644
}

Semantic roles & 50–950 ramp

primary
#2A45C2
secondary
#CDBE7B
accent
#CA40E7
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2A45C2

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

Preview Lab → · Contrast checker → · Palette generator →

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