#2D5AC2#2D5AC2

#2D5AC2 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.8% C 0.171 H 263.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#2D5AC2
RGBrgb(45, 90, 194)
HSLhsl(222, 62%, 47%)
HSVhsv(222, 77%, 76%)
CMYKcmyk(76.8%, 53.6%, 0%, 23.9%)
CIE-LABlab(40.84, 22.01, -58.87)
CIE-LCHlch(40.84, 62.85, 290.50°)
OKLaboklab(49.78% -0.0187 -0.1696)
OKLCHoklch(49.78% 0.171 263.7)
XYZxyz(14.4725, 11.7636, 52.5363)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5AC2 #C2952D
analogous
#2DA5C2 #2D5AC2 #4A2DC2
triadic
#2D5AC2 #C22D5A #5AC22D
tetradic
#2D5AC2 #C22DA5 #C2952D #2DC24A
square
#2D5AC2 #C22DA5 #C2952D #2DC24A
split-complementary
#2D5AC2 #C24A2D #A5C22D
monochromatic
#162C5F #214390 #2D5AC2 #557CD7 #86A2E3

Accessibility & contrast

On white

6.26
#2D5AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2D5AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5AC2
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5AC2#FFFFFF#000000##FFFFFF
##2D5AC21.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0467C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2d5ac2;
/* rgb */ color: rgb(45, 90, 194);
/* oklch */ color: oklch(49.8% 0.171 263.7);
Tailwind
colors: {
  custom: {
    50: '#7c88d5',
    500: '#2d5ac2',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ac2;
$custom-light: #7c88d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ac2",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 194
  },
  "hsl": {
    "h": 221.879,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49776,
    "c": 0.17068,
    "h": 263.7
  },
  "luminance": 0.11765
}

Semantic roles & 50–950 ramp

primary
#2D5AC2
secondary
#CDB57E
accent
#B442E5
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2D5AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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