#2C51AD#2C51AD

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

Color values

HEX#2C51AD
RGBrgb(44, 81, 173)
HSLhsl(223, 59%, 43%)
HSVhsv(223, 75%, 68%)
CMYKcmyk(74.6%, 53.2%, 0%, 32.2%)
CIE-LABlab(36.81, 19.82, -53.07)
CIE-LCHlch(36.81, 56.65, 290.48°)
OKLaboklab(46.23% -0.0145 -0.1527)
OKLCHoklch(46.23% 0.153 264.6)
XYZxyz(11.5213, 9.4362, 40.7412)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C51AD #AD882C
analogous
#2C91AD #2C51AD #482CAD
triadic
#2C51AD #AD2C51 #51AD2C
tetradic
#2C51AD #AD2C91 #AD882C #2CAD48
square
#2C51AD #AD2C91 #AD882C #2CAD48
split-complementary
#2C51AD #AD482C #91AD2C
monochromatic
#13234B #203A7C #2C51AD #466ED0 #7794DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C51AD#FFFFFF#000000##FFFFFF
##2C51AD1.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)
#0F5DB0
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2c51ad;
/* rgb */ color: rgb(44, 81, 173);
/* oklch */ color: oklch(46.2% 0.153 264.6);
Tailwind
colors: {
  custom: {
    50: '#7781c6',
    500: '#2c51ad',
    950: '#000000',
  },
}
SCSS
$custom: #2c51ad;
$custom-light: #7781c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c51ad",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 173
  },
  "hsl": {
    "h": 222.791,
    "s": 59.447,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46232,
    "c": 0.15344,
    "h": 264.6
  },
  "luminance": 0.09437
}

Semantic roles & 50–950 ramp

primary
#2C51AD
secondary
#C4AC71
accent
#B545E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C51AD

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

Preview Lab → · Contrast checker → · Palette generator →

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