#124E8F#124E8F

#124E8F is a dark, vivid cyan. Relative luminance 0.076; OKLCH L 42.5% C 0.123 H 254.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#124E8F
RGBrgb(18, 78, 143)
HSLhsl(211, 78%, 32%)
HSVhsv(211, 87%, 56%)
CMYKcmyk(87.4%, 45.5%, 0%, 43.9%)
CIE-LABlab(33.05, 7.07, -41.12)
CIE-LCHlch(33.05, 41.72, 279.75°)
OKLaboklab(42.45% -0.0331 -0.118)
OKLCHoklch(42.45% 0.123 254.3)
XYZxyz(7.9299, 7.5595, 27.0225)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#124E8F #8F5312
analogous
#128D8F #124E8F #15128F
triadic
#124E8F #8F124E #4E8F12
tetradic
#124E8F #8F128D #8F5312 #128F15
square
#124E8F #8F128D #8F5312 #128F15
split-complementary
#124E8F #8F1512 #8D8F12
monochromatic
#041322 #0B3059 #124E8F #196CC5 #368AE6

Accessibility & contrast

On white

8.36
#124E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#124E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #124E8F
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##124E8F#FFFFFF#000000##FFFFFF
##124E8F1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5491
Deuteranopia (green-blind)
#10498E
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #124e8f;
/* rgb */ color: rgb(18, 78, 143);
/* oklch */ color: oklch(42.5% 0.123 254.3);
Tailwind
colors: {
  custom: {
    50: '#687fb0',
    500: '#124e8f',
    950: '#000000',
  },
}
SCSS
$custom: #124e8f;
$custom-light: #687fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#124e8f",
  "rgb": {
    "r": 18,
    "g": 78,
    "b": 143
  },
  "hsl": {
    "h": 211.2,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42454,
    "c": 0.12258,
    "h": 254.3
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#124E8F
secondary
#C3813A
accent
#9834F4
background
#F6F7FA
surface
#ECEEF5
border
#C7C9CF
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #124E8F

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

Preview Lab → · Contrast checker → · Palette generator →

#124E8F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva