#2D51AF#2D51AF

#2D51AF is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.156 H 265.0°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#2D51AF
RGBrgb(45, 81, 175)
HSLhsl(223, 59%, 43%)
HSVhsv(223, 74%, 69%)
CMYKcmyk(74.3%, 53.7%, 0%, 31.4%)
CIE-LABlab(37.00, 20.71, -53.95)
CIE-LCHlch(37.00, 57.79, 291.00°)
OKLaboklab(46.43% -0.0135 -0.1553)
OKLCHoklch(46.43% 0.156 265)
XYZxyz(11.7598, 9.5366, 41.7701)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D51AF #AF8B2D
analogous
#2D92AF #2D51AF #4A2DAF
triadic
#2D51AF #AF2D51 #51AF2D
tetradic
#2D51AF #AF2D92 #AF8B2D #2DAF4A
square
#2D51AF #AF2D92 #AF8B2D #2DAF4A
split-complementary
#2D51AF #AF4A2D #92AF2D
monochromatic
#14244E #203A7E #2D51AF #496ED0 #7A95DD

Accessibility & contrast

On white

7.22
#2D51AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2D51AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D51AF
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D51AF#FFFFFF#000000##FFFFFF
##2D51AF1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095DB2
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2d51af;
/* rgb */ color: rgb(45, 81, 175);
/* oklch */ color: oklch(46.4% 0.156 265.0);
Tailwind
colors: {
  custom: {
    50: '#7881c8',
    500: '#2d51af',
    950: '#000000',
  },
}
SCSS
$custom: #2d51af;
$custom-light: #7881c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d51af",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 223.385,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4643,
    "c": 0.15591,
    "h": 265
  },
  "luminance": 0.09538
}

Semantic roles & 50–950 ramp

primary
#2D51AF
secondary
#C5AE73
accent
#B746E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2D51AF

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

Preview Lab → · Contrast checker → · Palette generator →

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