#2A54C3#2A54C3

#2A54C3 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.5% C 0.180 H 264.7°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#2A54C3
RGBrgb(42, 84, 195)
HSLhsl(224, 65%, 46%)
HSVhsv(224, 78%, 76%)
CMYKcmyk(78.5%, 56.9%, 0%, 23.5%)
CIE-LABlab(39.19, 25.98, -62.13)
CIE-LCHlch(39.19, 67.34, 292.69°)
OKLaboklab(48.53% -0.0166 -0.1794)
OKLCHoklch(48.53% 0.18 264.7)
XYZxyz(13.9720, 10.7714, 52.9619)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54C3 #C3992A
analogous
#2AA1C3 #2A54C3 #4C2AC3
triadic
#2A54C3 #C32A54 #54C32A
tetradic
#2A54C3 #C32AA1 #C3992A #2AC34C
square
#2A54C3 #C32AA1 #C3992A #2AC34C
split-complementary
#2A54C3 #C34C2A #A1C32A
monochromatic
#14295E #1F3E91 #2A54C3 #5176D9 #839EE4

Accessibility & contrast

On white

6.66
#2A54C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2A54C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A54C3
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54C3#FFFFFF#000000##FFFFFF
##2A54C31.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C7
Deuteranopia (green-blind)
#0056C1
Tritanopia (blue-blind)
#007083
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a54c3;
/* rgb */ color: rgb(42, 84, 195);
/* oklch */ color: oklch(48.5% 0.180 264.7);
Tailwind
colors: {
  custom: {
    50: '#7c83d6',
    500: '#2a54c3',
    950: '#000000',
  },
}
SCSS
$custom: #2a54c3;
$custom-light: #7c83d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54c3",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 195
  },
  "hsl": {
    "h": 223.529,
    "s": 64.557,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48527,
    "c": 0.18016,
    "h": 264.7
  },
  "luminance": 0.10773
}

Semantic roles & 50–950 ramp

primary
#2A54C3
secondary
#CDB77B
accent
#BA40E8
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2A54C3

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

Preview Lab → · Contrast checker → · Palette generator →

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