#2D54C4#2D54C4

#2D54C4 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.7% C 0.181 H 265.5°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#2D54C4
RGBrgb(45, 84, 196)
HSLhsl(225, 63%, 47%)
HSVhsv(225, 77%, 77%)
CMYKcmyk(77%, 57.1%, 0%, 23.1%)
CIE-LABlab(39.38, 26.68, -62.40)
CIE-LCHlch(39.38, 67.86, 293.15°)
OKLaboklab(48.73% -0.0143 -0.1801)
OKLCHoklch(48.73% 0.181 265.5)
XYZxyz(14.2128, 10.8824, 53.5653)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D54C4 #C49D2D
analogous
#2DA0C4 #2D54C4 #512DC4
triadic
#2D54C4 #C42D54 #54C42D
tetradic
#2D54C4 #C42DA0 #C49D2D #2DC451
square
#2D54C4 #C42DA0 #C49D2D #2DC451
split-complementary
#2D54C4 #C4512D #A0C42D
monochromatic
#162960 #223F92 #2D54C4 #5678D8 #889FE4

Accessibility & contrast

On white

6.61
#2D54C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#2D54C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D54C4
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D54C4#FFFFFF#000000##FFFFFF
##2D54C41.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#0056C2
Tritanopia (blue-blind)
#007084
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2d54c4;
/* rgb */ color: rgb(45, 84, 196);
/* oklch */ color: oklch(48.7% 0.181 265.5);
Tailwind
colors: {
  custom: {
    50: '#7d83d7',
    500: '#2d54c4',
    950: '#000000',
  },
}
SCSS
$custom: #2d54c4;
$custom-light: #7d83d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d54c4",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 196
  },
  "hsl": {
    "h": 224.503,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48725,
    "c": 0.1807,
    "h": 265.5
  },
  "luminance": 0.10884
}

Semantic roles & 50–950 ramp

primary
#2D54C4
secondary
#CDB980
accent
#BB42E6
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D54C4

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

Preview Lab → · Contrast checker → · Palette generator →

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