#2A5ACA#2A5ACA

#2A5ACA is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.3% C 0.182 H 263.6°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#2A5ACA
RGBrgb(42, 90, 202)
HSLhsl(222, 66%, 48%)
HSVhsv(222, 79%, 79%)
CMYKcmyk(79.2%, 55.4%, 0%, 20.8%)
CIE-LABlab(41.32, 24.72, -62.72)
CIE-LCHlch(41.32, 67.42, 291.51°)
OKLaboklab(50.3% -0.0202 -0.181)
OKLCHoklch(50.3% 0.182 263.6)
XYZxyz(15.2679, 12.0670, 57.3902)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5ACA #CA9A2A
analogous
#2AAACA #2A5ACA #4A2ACA
triadic
#2A5ACA #CA2A5A #5ACA2A
tetradic
#2A5ACA #CA2AAA #CA9A2A #2ACA4A
square
#2A5ACA #CA2AAA #CA9A2A #2ACA4A
split-complementary
#2A5ACA #CA4A2A #AACA2A
monochromatic
#152D65 #1F4397 #2A5ACA #557EDC #88A4E6

Accessibility & contrast

On white

6.15
#2A5ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2A5ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5ACA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5ACA#FFFFFF#000000##FFFFFF
##2A5ACA1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5aca;
/* rgb */ color: rgb(42, 90, 202);
/* oklch */ color: oklch(50.3% 0.182 263.6);
Tailwind
colors: {
  custom: {
    50: '#7d88db',
    500: '#2a5aca',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aca;
$custom-light: #7d88db;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aca",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 202
  },
  "hsl": {
    "h": 222,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50299,
    "c": 0.18215,
    "h": 263.6
  },
  "luminance": 0.12069
}

Semantic roles & 50–950 ramp

primary
#2A5ACA
secondary
#D0B880
accent
#B63FE9
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2A5ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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