#42A7DF#42A7DF

#42A7DF is a light, vivid cyan. Relative luminance 0.341; OKLCH L 69.4% C 0.124 H 236.9°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#42A7DF
RGBrgb(66, 167, 223)
HSLhsl(201, 71%, 57%)
HSVhsv(201, 70%, 87%)
CMYKcmyk(70.4%, 25.1%, 0%, 12.5%)
CIE-LABlab(65.06, -11.32, -36.75)
CIE-LCHlch(65.06, 38.45, 252.88°)
OKLaboklab(69.36% -0.0675 -0.1035)
OKLCHoklch(69.36% 0.124 236.9)
XYZxyz(29.3795, 34.1201, 74.8352)
Luminance0.3412 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A7DF #DF7A42
analogous
#42DFC8 #42A7DF #4259DF
triadic
#42A7DF #DF42A7 #A7DF42
tetradic
#42A7DF #C842DF #DF7A42 #59DF42
square
#42A7DF #C842DF #DF7A42 #59DF42
split-complementary
#42A7DF #DF4259 #DFC842
monochromatic
#18648E #2189C3 #42A7DF #76BFE8 #ABD8F1

Accessibility & contrast

On white

2.68
#42A7DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#42A7DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42A7DF
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A7DF#FFFFFF#000000##000000
##42A7DF1.002.687.827.82
#FFFFFF2.681.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CA6E2
Deuteranopia (green-blind)
#7797DE
Tritanopia (blue-blind)
#00B5BA
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #42a7df;
/* rgb */ color: rgb(66, 167, 223);
/* oklch */ color: oklch(69.4% 0.124 236.9);
Tailwind
colors: {
  custom: {
    50: '#89c1e9',
    500: '#42a7df',
    950: '#000000',
  },
}
SCSS
$custom: #42a7df;
$custom-light: #89c1e9;
$custom-dark: #000000;
JSON
{
  "hex": "#42a7df",
  "rgb": {
    "r": 66,
    "g": 167,
    "b": 223
  },
  "hsl": {
    "h": 201.401,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.69356,
    "c": 0.12356,
    "h": 236.9
  },
  "luminance": 0.34123
}

Semantic roles & 50–950 ramp

primary
#42A7DF
secondary
#DFB59E
accent
#7A3AEE
background
#F9FBFE
surface
#F1F7FD
border
#CBD0D5
text
#0D1216
muted
#7E8184

Preview Lab

Preview with #42A7DF

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

Preview Lab → · Contrast checker → · Palette generator →

#42A7DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva