#2A45BF#2A45BF

#2A45BF is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.3% C 0.193 H 267.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#2A45BF
RGBrgb(42, 69, 191)
HSLhsl(229, 64%, 46%)
HSVhsv(229, 78%, 75%)
CMYKcmyk(78%, 63.9%, 0%, 25.1%)
CIE-LABlab(35.02, 34.24, -66.61)
CIE-LCHlch(35.02, 74.89, 297.21°)
OKLaboklab(45.32% -0.0073 -0.1927)
OKLCHoklch(45.32% 0.193 267.8)
XYZxyz(12.4837, 8.5087, 50.2645)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45BF #BFA42A
analogous
#2A8FBF #2A45BF #5A2ABF
triadic
#2A45BF #BF2A45 #45BF2A
tetradic
#2A45BF #BF2A8F #BFA42A #2ABF5A
square
#2A45BF #BF2A8F #BFA42A #2ABF5A
split-complementary
#2A45BF #BF5A2A #8FBF2A
monochromatic
#14215B #1F338D #2A45BF #4E67D8 #8092E3

Accessibility & contrast

On white

7.77
#2A45BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2A45BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45BF
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45BF#FFFFFF#000000##FFFFFF
##2A45BF1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#004BBD
Tritanopia (blue-blind)
#00657B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a45bf;
/* rgb */ color: rgb(42, 69, 191);
/* oklch */ color: oklch(45.3% 0.193 267.8);
Tailwind
colors: {
  custom: {
    50: '#7c78d3',
    500: '#2a45bf',
    950: '#000000',
  },
}
SCSS
$custom: #2a45bf;
$custom-light: #7c78d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45bf",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 229.128,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45319,
    "c": 0.19285,
    "h": 267.8
  },
  "luminance": 0.0851
}

Semantic roles & 50–950 ramp

primary
#2A45BF
secondary
#CCBD79
accent
#C941E7
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2A45BF

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

Preview Lab → · Contrast checker → · Palette generator →

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