#2A5CB3#2A5CB3

#2A5CB3 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.149 H 260.6°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#2A5CB3
RGBrgb(42, 92, 179)
HSLhsl(218, 62%, 43%)
HSVhsv(218, 77%, 70%)
CMYKcmyk(76.5%, 48.6%, 0%, 29.8%)
CIE-LABlab(40.25, 14.62, -51.07)
CIE-LCHlch(40.25, 53.12, 285.98°)
OKLaboklab(48.96% -0.0242 -0.1467)
OKLCHoklch(48.96% 0.149 260.6)
XYZxyz(12.9157, 11.3997, 44.1588)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CB3 #B3812A
analogous
#2AA0B3 #2A5CB3 #3C2AB3
triadic
#2A5CB3 #B32A5C #5CB32A
tetradic
#2A5CB3 #B32AA0 #B3812A #2AB33C
square
#2A5CB3 #B32AA0 #B3812A #2AB33C
split-complementary
#2A5CB3 #B33C2A #A0B32A
monochromatic
#132950 #1E4381 #2A5CB3 #467AD4 #789EDF

Accessibility & contrast

On white

6.40
#2A5CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#2A5CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CB3
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CB3#FFFFFF#000000##FFFFFF
##2A5CB31.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B66B6
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5cb3;
/* rgb */ color: rgb(42, 92, 179);
/* oklch */ color: oklch(49.0% 0.149 260.6);
Tailwind
colors: {
  custom: {
    50: '#7789ca',
    500: '#2a5cb3',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cb3;
$custom-light: #7789ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cb3",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 179
  },
  "hsl": {
    "h": 218.102,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48963,
    "c": 0.14869,
    "h": 260.6
  },
  "luminance": 0.11401
}

Semantic roles & 50–950 ramp

primary
#2A5CB3
secondary
#C7A872
accent
#AA43E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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