#2A45C0#2A45C0

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

Color values

HEX#2A45C0
RGBrgb(42, 69, 192)
HSLhsl(229, 64%, 46%)
HSVhsv(229, 78%, 75%)
CMYKcmyk(78.1%, 64.1%, 0%, 24.7%)
CIE-LABlab(35.11, 34.61, -67.05)
CIE-LCHlch(35.11, 75.45, 297.30°)
OKLaboklab(45.41% -0.0074 -0.194)
OKLCHoklch(45.41% 0.194 267.8)
XYZxyz(12.5941, 8.5528, 50.8461)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45C0 #C0A52A
analogous
#2A90C0 #2A45C0 #5A2AC0
triadic
#2A45C0 #C02A45 #45C02A
tetradic
#2A45C0 #C02A90 #C0A52A #2AC05A
square
#2A45C0 #C02A90 #C0A52A #2AC05A
split-complementary
#2A45C0 #C05A2A #90C02A
monochromatic
#14215C #1F338E #2A45C0 #4F68D8 #8193E3

Accessibility & contrast

On white

7.75
#2A45C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2A45C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45C0
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45C0#FFFFFF#000000##FFFFFF
##2A45C01.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#004CBE
Tritanopia (blue-blind)
#00657C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a45c0;
/* rgb */ color: rgb(42, 69, 192);
/* oklch */ color: oklch(45.4% 0.194 267.8);
Tailwind
colors: {
  custom: {
    50: '#7c78d4',
    500: '#2a45c0',
    950: '#000000',
  },
}
SCSS
$custom: #2a45c0;
$custom-light: #7c78d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45c0",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 192
  },
  "hsl": {
    "h": 229.2,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45411,
    "c": 0.19414,
    "h": 267.8
  },
  "luminance": 0.08554
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A45C0

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

Preview Lab → · Contrast checker → · Palette generator →

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