#2D54AC#2D54AC

#2D54AC is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.8% C 0.148 H 263.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2D54AC
RGBrgb(45, 84, 172)
HSLhsl(222, 59%, 43%)
HSVhsv(222, 74%, 67%)
CMYKcmyk(73.8%, 51.2%, 0%, 32.5%)
CIE-LABlab(37.62, 17.58, -51.16)
CIE-LCHlch(37.62, 54.10, 288.97°)
OKLaboklab(46.83% -0.0163 -0.1471)
OKLCHoklch(46.83% 0.148 263.7)
XYZxyz(11.6963, 9.8758, 40.3115)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D54AC #AC852D
analogous
#2D93AC #2D54AC #462DAC
triadic
#2D54AC #AC2D54 #54AC2D
tetradic
#2D54AC #AC2D93 #AC852D #2DAC46
square
#2D54AC #AC2D93 #AC852D #2DAC46
split-complementary
#2D54AC #AC462D #93AC2D
monochromatic
#14254B #203C7B #2D54AC #4771CF #7896DC

Accessibility & contrast

On white

7.06
#2D54AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2D54AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D54AC
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D54AC#FFFFFF#000000##FFFFFF
##2D54AC1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5FAF
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#006978
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2d54ac;
/* rgb */ color: rgb(45, 84, 172);
/* oklch */ color: oklch(46.8% 0.148 263.7);
Tailwind
colors: {
  custom: {
    50: '#7783c5',
    500: '#2d54ac',
    950: '#000000',
  },
}
SCSS
$custom: #2d54ac;
$custom-light: #7783c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d54ac",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 172
  },
  "hsl": {
    "h": 221.575,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46834,
    "c": 0.14799,
    "h": 263.7
  },
  "luminance": 0.09877
}

Semantic roles & 50–950 ramp

primary
#2D54AC
secondary
#C4AA71
accent
#B246E2
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2D54AC

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

Preview Lab → · Contrast checker → · Palette generator →

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