#2A6BC9#2A6BC9

#2A6BC9 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 53.8% C 0.160 H 258.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2A6BC9
RGBrgb(42, 107, 201)
HSLhsl(215, 65%, 48%)
HSVhsv(215, 79%, 79%)
CMYKcmyk(79.1%, 46.8%, 0%, 21.2%)
CIE-LABlab(45.94, 13.36, -54.68)
CIE-LCHlch(45.94, 56.29, 283.73°)
OKLaboklab(53.8% -0.0328 -0.1571)
OKLCHoklch(53.8% 0.16 258.2)
XYZxyz(16.7513, 15.2227, 57.3024)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6BC9 #C9882A
analogous
#2ABAC9 #2A6BC9 #392AC9
triadic
#2A6BC9 #C92A6B #6BC92A
tetradic
#2A6BC9 #C92ABA #C9882A #2AC939
square
#2A6BC9 #C92ABA #C9882A #2AC939
split-complementary
#2A6BC9 #C9392A #BAC92A
monochromatic
#153564 #1F5096 #2A6BC9 #558CDB #87AEE6

Accessibility & contrast

On white

5.19
#2A6BC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2A6BC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6BC9
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6BC9#FFFFFF#000000##FFFFFF
##2A6BC91.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3774CD
Deuteranopia (green-blind)
#0666C7
Tritanopia (blue-blind)
#008190
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a6bc9;
/* rgb */ color: rgb(42, 107, 201);
/* oklch */ color: oklch(53.8% 0.160 258.2);
Tailwind
colors: {
  custom: {
    50: '#7c94da',
    500: '#2a6bc9',
    950: '#000000',
  },
}
SCSS
$custom: #2a6bc9;
$custom-light: #7c94da;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6bc9",
  "rgb": {
    "r": 42,
    "g": 107,
    "b": 201
  },
  "hsl": {
    "h": 215.472,
    "s": 65.432,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53799,
    "c": 0.16044,
    "h": 258.2
  },
  "luminance": 0.15225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A6BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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