#2A5AC9#2A5AC9

#2A5AC9 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.2% C 0.181 H 263.6°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#2A5AC9
RGBrgb(42, 90, 201)
HSLhsl(222, 65%, 48%)
HSVhsv(222, 79%, 79%)
CMYKcmyk(79.1%, 55.2%, 0%, 21.2%)
CIE-LABlab(41.25, 24.34, -62.27)
CIE-LCHlch(41.25, 66.86, 291.35°)
OKLaboklab(50.22% -0.0203 -0.1797)
OKLCHoklch(50.22% 0.181 263.6)
XYZxyz(15.1499, 12.0198, 56.7686)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AC9 #C9992A
analogous
#2AA9C9 #2A5AC9 #4A2AC9
triadic
#2A5AC9 #C92A5A #5AC92A
tetradic
#2A5AC9 #C92AA9 #C9992A #2AC94A
square
#2A5AC9 #C92AA9 #C9992A #2AC94A
split-complementary
#2A5AC9 #C94A2A #A9C92A
monochromatic
#152D64 #1F4396 #2A5AC9 #557DDB #87A4E6

Accessibility & contrast

On white

6.17
#2A5AC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2A5AC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AC9
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AC9#FFFFFF#000000##FFFFFF
##2A5AC91.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a5ac9;
/* rgb */ color: rgb(42, 90, 201);
/* oklch */ color: oklch(50.2% 0.181 263.6);
Tailwind
colors: {
  custom: {
    50: '#7d88da',
    500: '#2a5ac9',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ac9;
$custom-light: #7d88da;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ac9",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 201
  },
  "hsl": {
    "h": 221.887,
    "s": 65.432,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50219,
    "c": 0.18083,
    "h": 263.6
  },
  "luminance": 0.12022
}

Semantic roles & 50–950 ramp

primary
#2A5AC9
secondary
#D0B77F
accent
#B53FE8
background
#F8F8FD
surface
#EFEFFB
border
#CACAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2A5AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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