#2A6AC9#2A6AC9

#2A6AC9 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 53.6% C 0.162 H 258.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2A6AC9
RGBrgb(42, 106, 201)
HSLhsl(216, 65%, 48%)
HSVhsv(216, 79%, 79%)
CMYKcmyk(79.1%, 47.3%, 0%, 21.2%)
CIE-LABlab(45.66, 14.00, -55.14)
CIE-LCHlch(45.66, 56.89, 284.24°)
OKLaboklab(53.58% -0.032 -0.1584)
OKLCHoklch(53.58% 0.162 258.6)
XYZxyz(16.6476, 15.0154, 57.2679)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6AC9 #C9892A
analogous
#2AB9C9 #2A6AC9 #392AC9
triadic
#2A6AC9 #C92A6A #6AC92A
tetradic
#2A6AC9 #C92AB9 #C9892A #2AC939
square
#2A6AC9 #C92AB9 #C9892A #2AC939
split-complementary
#2A6AC9 #C9392A #B9C92A
monochromatic
#153564 #1F4F96 #2A6AC9 #558BDB #87ADE6

Accessibility & contrast

On white

5.25
#2A6AC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2A6AC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6AC9
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6AC9#FFFFFF#000000##FFFFFF
##2A6AC91.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3574CD
Deuteranopia (green-blind)
#0065C7
Tritanopia (blue-blind)
#008190
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a6ac9;
/* rgb */ color: rgb(42, 106, 201);
/* oklch */ color: oklch(53.6% 0.162 258.6);
Tailwind
colors: {
  custom: {
    50: '#7c93da',
    500: '#2a6ac9',
    950: '#000000',
  },
}
SCSS
$custom: #2a6ac9;
$custom-light: #7c93da;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6ac9",
  "rgb": {
    "r": 42,
    "g": 106,
    "b": 201
  },
  "hsl": {
    "h": 215.849,
    "s": 65.432,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53581,
    "c": 0.16161,
    "h": 258.6
  },
  "luminance": 0.15017
}

Semantic roles & 50–950 ramp

primary
#2A6AC9
secondary
#D0AF7F
accent
#A43FE8
background
#F8F9FD
surface
#EFF1FB
border
#CACBD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2A6AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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