#2A45BC#2A45BC

#2A45BC is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.0% C 0.189 H 267.8°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#2A45BC
RGBrgb(42, 69, 188)
HSLhsl(229, 63%, 45%)
HSVhsv(229, 78%, 74%)
CMYKcmyk(77.7%, 63.3%, 0%, 26.3%)
CIE-LABlab(34.76, 33.14, -65.27)
CIE-LCHlch(34.76, 73.20, 296.92°)
OKLaboklab(45.04% -0.0072 -0.1888)
OKLCHoklch(45.04% 0.189 267.8)
XYZxyz(12.1569, 8.3780, 48.5436)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45BC #BCA12A
analogous
#2A8EBC #2A45BC #582ABC
triadic
#2A45BC #BC2A45 #45BC2A
tetradic
#2A45BC #BC2A8E #BCA12A #2ABC58
square
#2A45BC #BC2A8E #BCA12A #2ABC58
split-complementary
#2A45BC #BC582A #8EBC2A
monochromatic
#142058 #1F338A #2A45BC #4C66D7 #7E91E2

Accessibility & contrast

On white

7.85
#2A45BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2A45BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45BC
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45BC#FFFFFF#000000##FFFFFF
##2A45BC1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#00647A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a45bc;
/* rgb */ color: rgb(42, 69, 188);
/* oklch */ color: oklch(45.0% 0.189 267.8);
Tailwind
colors: {
  custom: {
    50: '#7b78d1',
    500: '#2a45bc',
    950: '#000000',
  },
}
SCSS
$custom: #2a45bc;
$custom-light: #7b78d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45bc",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 228.904,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45044,
    "c": 0.18895,
    "h": 267.8
  },
  "luminance": 0.08379
}

Semantic roles & 50–950 ramp

primary
#2A45BC
secondary
#CBBB77
accent
#C841E7
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2A45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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