#2D5AC6#2D5AC6

#2D5AC6 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.1% C 0.176 H 264.0°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#2D5AC6
RGBrgb(45, 90, 198)
HSLhsl(222, 63%, 48%)
HSVhsv(222, 77%, 78%)
CMYKcmyk(77.3%, 54.5%, 0%, 22.4%)
CIE-LABlab(41.13, 23.52, -60.72)
CIE-LCHlch(41.13, 65.11, 291.17°)
OKLaboklab(50.09% -0.0184 -0.1751)
OKLCHoklch(50.09% 0.176 264)
XYZxyz(14.9278, 11.9457, 54.9341)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5AC6 #C6992D
analogous
#2DA6C6 #2D5AC6 #4D2DC6
triadic
#2D5AC6 #C62D5A #5AC62D
tetradic
#2D5AC6 #C62DA6 #C6992D #2DC64D
square
#2D5AC6 #C62DA6 #C6992D #2DC64D
split-complementary
#2D5AC6 #C64D2D #A6C62D
monochromatic
#162D62 #224394 #2D5AC6 #577DD9 #89A4E4

Accessibility & contrast

On white

6.20
#2D5AC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2D5AC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5AC6
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5AC6#FFFFFF#000000##FFFFFF
##2D5AC61.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CA
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#007587
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2d5ac6;
/* rgb */ color: rgb(45, 90, 198);
/* oklch */ color: oklch(50.1% 0.176 264.0);
Tailwind
colors: {
  custom: {
    50: '#7d88d8',
    500: '#2d5ac6',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ac6;
$custom-light: #7d88d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ac6",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 198
  },
  "hsl": {
    "h": 222.353,
    "s": 62.963,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50089,
    "c": 0.17605,
    "h": 264
  },
  "luminance": 0.11947
}

Semantic roles & 50–950 ramp

primary
#2D5AC6
secondary
#CEB781
accent
#B642E6
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2D5AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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