#2C5ABB#2C5ABB

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

Color values

HEX#2C5ABB
RGBrgb(44, 90, 187)
HSLhsl(221, 62%, 45%)
HSVhsv(221, 76%, 73%)
CMYKcmyk(76.5%, 51.9%, 0%, 26.7%)
CIE-LABlab(40.30, 19.23, -55.66)
CIE-LCHlch(40.30, 58.89, 289.06°)
OKLaboklab(49.2% -0.0202 -0.1602)
OKLCHoklch(49.2% 0.161 262.8)
XYZxyz(13.6613, 11.4341, 48.4911)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5ABB #BB8D2C
analogous
#2CA2BB #2C5ABB #452CBB
triadic
#2C5ABB #BB2C5A #5ABB2C
tetradic
#2C5ABB #BB2CA2 #BB8D2C #2CBB45
square
#2C5ABB #BB2CA2 #BB8D2C #2CBB45
split-complementary
#2C5ABB #BB452C #A2BB2C
monochromatic
#152A58 #204289 #2C5ABB #4F7AD6 #809FE1

Accessibility & contrast

On white

6.39
#2C5ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2C5ABB
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5ABB#FFFFFF#000000##FFFFFF
##2C5ABB1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.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: #2c5abb;
/* rgb */ color: rgb(44, 90, 187);
/* oklch */ color: oklch(49.2% 0.161 262.8);
Tailwind
colors: {
  custom: {
    50: '#7a88d0',
    500: '#2c5abb',
    950: '#000000',
  },
}
SCSS
$custom: #2c5abb;
$custom-light: #7a88d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5abb",
  "rgb": {
    "r": 44,
    "g": 90,
    "b": 187
  },
  "hsl": {
    "h": 220.699,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49201,
    "c": 0.16148,
    "h": 262.8
  },
  "luminance": 0.11436
}

Semantic roles & 50–950 ramp

primary
#2C5ABB
secondary
#CAB079
accent
#B143E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2C5ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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