#2D54B7#2D54B7

#2D54B7 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.163 H 264.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#2D54B7
RGBrgb(45, 84, 183)
HSLhsl(223, 61%, 45%)
HSVhsv(223, 75%, 72%)
CMYKcmyk(75.4%, 54.1%, 0%, 28.2%)
CIE-LABlab(38.40, 21.77, -56.39)
CIE-LCHlch(38.40, 60.44, 291.11°)
OKLaboklab(47.68% -0.0152 -0.1625)
OKLCHoklch(47.68% 0.163 264.7)
XYZxyz(12.7967, 10.3160, 46.1073)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D54B7 #B7902D
analogous
#2D99B7 #2D54B7 #4B2DB7
triadic
#2D54B7 #B72D54 #54B72D
tetradic
#2D54B7 #B72D99 #B7902D #2DB74B
square
#2D54B7 #B72D99 #B7902D #2DB74B
split-complementary
#2D54B7 #B74B2D #99B72D
monochromatic
#152755 #213D86 #2D54B7 #4E74D3 #7F9ADF

Accessibility & contrast

On white

6.86
#2D54B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2D54B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D54B7
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D54B7#FFFFFF#000000##FFFFFF
##2D54B71.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0161BA
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d54b7;
/* rgb */ color: rgb(45, 84, 183);
/* oklch */ color: oklch(47.7% 0.163 264.7);
Tailwind
colors: {
  custom: {
    50: '#7a83cd',
    500: '#2d54b7',
    950: '#000000',
  },
}
SCSS
$custom: #2d54b7;
$custom-light: #7a83cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d54b7",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 183
  },
  "hsl": {
    "h": 223.043,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4768,
    "c": 0.16317,
    "h": 264.7
  },
  "luminance": 0.10317
}

Semantic roles & 50–950 ramp

primary
#2D54B7
secondary
#C8B178
accent
#B744E4
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2D54B7

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

Preview Lab → · Contrast checker → · Palette generator →

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