#2D54A0#2D54A0

#2D54A0 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.0% C 0.131 H 262.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2D54A0
RGBrgb(45, 84, 160)
HSLhsl(220, 56%, 40%)
HSVhsv(220, 72%, 63%)
CMYKcmyk(71.9%, 47.5%, 0%, 37.3%)
CIE-LABlab(36.81, 13.01, -45.32)
CIE-LCHlch(36.81, 47.15, 286.02°)
OKLaboklab(45.96% -0.018 -0.1299)
OKLCHoklch(45.96% 0.131 262.1)
XYZxyz(10.5954, 9.4355, 34.5137)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D54A0 #A0792D
analogous
#2D8EA0 #2D54A0 #3F2DA0
triadic
#2D54A0 #A02D54 #54A02D
tetradic
#2D54A0 #A02D8E #A0792D #2DA03F
square
#2D54A0 #A02D8E #A0792D #2DA03F
split-complementary
#2D54A0 #A03F2D #8EA02D
monochromatic
#122240 #203B70 #2D54A0 #416FC9 #7093D7

Accessibility & contrast

On white

7.27
#2D54A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2D54A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D54A0
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D54A0#FFFFFF#000000##FFFFFF
##2D54A01.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5CA3
Deuteranopia (green-blind)
#11529E
Tritanopia (blue-blind)
#006672
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2d54a0;
/* rgb */ color: rgb(45, 84, 160);
/* oklch */ color: oklch(46.0% 0.131 262.1);
Tailwind
colors: {
  custom: {
    50: '#7583bd',
    500: '#2d54a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d54a0;
$custom-light: #7583bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d54a0",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 160
  },
  "hsl": {
    "h": 219.652,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45957,
    "c": 0.13112,
    "h": 262.1
  },
  "luminance": 0.09437
}

Semantic roles & 50–950 ramp

primary
#2D54A0
secondary
#BEA26B
accent
#AC48DF
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2D54A0

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

Preview Lab → · Contrast checker → · Palette generator →

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