#2A7BE6#2A7BE6

#2A7BE6 is a mid, vivid cyan. Relative luminance 0.204; OKLCH L 59.3% C 0.180 H 257.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2A7BE6
RGBrgb(42, 123, 230)
HSLhsl(214, 79%, 53%)
HSVhsv(214, 82%, 90%)
CMYKcmyk(81.7%, 46.5%, 0%, 9.8%)
CIE-LABlab(52.25, 14.27, -60.98)
CIE-LCHlch(52.25, 62.62, 283.17°)
OKLaboklab(59.26% -0.04 -0.1752)
OKLCHoklch(59.26% 0.18 257.1)
XYZxyz(22.3154, 20.3686, 77.6030)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7BE6 #E6952A
analogous
#2AD9E6 #2A7BE6 #372AE6
triadic
#2A7BE6 #E62A7B #7BE62A
tetradic
#2A7BE6 #E62AD9 #E6952A #2AE637
square
#2A7BE6 #E62AD9 #E6952A #2AE637
split-complementary
#2A7BE6 #E6372A #D9E62A
monochromatic
#104386 #165EBD #2A7BE6 #619DEC #98BFF3

Accessibility & contrast

On white

4.14
#2A7BE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#2A7BE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7BE6
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7BE6#FFFFFF#000000##000000
##2A7BE61.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F86EA
Deuteranopia (green-blind)
#0075E4
Tritanopia (blue-blind)
#0095A5
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #2a7be6;
/* rgb */ color: rgb(42, 123, 230);
/* oklch */ color: oklch(59.3% 0.180 257.1);
Tailwind
colors: {
  custom: {
    50: '#82a0ee',
    500: '#2a7be6',
    950: '#000000',
  },
}
SCSS
$custom: #2a7be6;
$custom-light: #82a0ee;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7be6",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 230
  },
  "hsl": {
    "h": 214.149,
    "s": 78.992,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59255,
    "c": 0.17976,
    "h": 257.1
  },
  "luminance": 0.20371
}

Semantic roles & 50–950 ramp

primary
#2A7BE6
secondary
#DEBB8D
accent
#A132F5
background
#F8F9FE
surface
#F0F2FD
border
#CBCCD5
text
#0C0E16
muted
#7D7E84

Preview Lab

Preview with #2A7BE6

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

Preview Lab → · Contrast checker → · Palette generator →

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