#2D5ABB#2D5ABB

#2D5ABB is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.161 H 263.1°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#2D5ABB
RGBrgb(45, 90, 187)
HSLhsl(221, 61%, 45%)
HSVhsv(221, 76%, 73%)
CMYKcmyk(75.9%, 51.9%, 0%, 26.7%)
CIE-LABlab(40.34, 19.35, -55.60)
CIE-LCHlch(40.34, 58.87, 289.19°)
OKLaboklab(49.24% -0.0194 -0.16)
OKLCHoklch(49.24% 0.161 263.1)
XYZxyz(13.7048, 11.4565, 48.4931)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5ABB #BB8E2D
analogous
#2DA1BB #2D5ABB #472DBB
triadic
#2D5ABB #BB2D5A #5ABB2D
tetradic
#2D5ABB #BB2DA1 #BB8E2D #2DBB47
square
#2D5ABB #BB2DA1 #BB8E2D #2DBB47
split-complementary
#2D5ABB #BB472D #A1BB2D
monochromatic
#152B58 #21428A #2D5ABB #507AD5 #82A0E1

Accessibility & contrast

On white

6.38
#2D5ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2D5ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5ABB
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5ABB#FFFFFF#000000##FFFFFF
##2D5ABB1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1966BE
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#007182
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d5abb;
/* rgb */ color: rgb(45, 90, 187);
/* oklch */ color: oklch(49.2% 0.161 263.1);
Tailwind
colors: {
  custom: {
    50: '#7a88d0',
    500: '#2d5abb',
    950: '#000000',
  },
}
SCSS
$custom: #2d5abb;
$custom-light: #7a88d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5abb",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 187
  },
  "hsl": {
    "h": 220.986,
    "s": 61.207,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49239,
    "c": 0.16121,
    "h": 263.1
  },
  "luminance": 0.11458
}

Semantic roles & 50–950 ramp

primary
#2D5ABB
secondary
#CAB17A
accent
#B143E4
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2D5ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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