#124A8E#124A8E

#124A8E is a dark, vivid cyan. Relative luminance 0.070; OKLCH L 41.4% C 0.126 H 256.2°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#124A8E
RGBrgb(18, 74, 142)
HSLhsl(213, 78%, 31%)
HSVhsv(213, 87%, 56%)
CMYKcmyk(87.3%, 47.9%, 0%, 44.3%)
CIE-LABlab(31.76, 9.36, -42.58)
CIE-LCHlch(31.76, 43.60, 282.39°)
OKLaboklab(41.43% -0.0302 -0.1224)
OKLCHoklch(41.43% 0.126 256.2)
XYZxyz(7.5789, 6.9782, 26.5334)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#124A8E #8E5612
analogous
#12888E #124A8E #18128E
triadic
#124A8E #8E124A #4A8E12
tetradic
#124A8E #8E1288 #8E5612 #128E18
square
#124A8E #8E1288 #8E5612 #128E18
split-complementary
#124A8E #8E1812 #888E12
monochromatic
#041121 #0B2E58 #124A8E #1966C4 #3585E5

Accessibility & contrast

On white

8.77
#124A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#124A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #124A8E
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##124A8E#FFFFFF#000000##FFFFFF
##124A8E1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245191
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #124a8e;
/* rgb */ color: rgb(18, 74, 142);
/* oklch */ color: oklch(41.4% 0.126 256.2);
Tailwind
colors: {
  custom: {
    50: '#687baf',
    500: '#124a8e',
    950: '#000000',
  },
}
SCSS
$custom: #124a8e;
$custom-light: #687baf;
$custom-dark: #000000;
JSON
{
  "hex": "#124a8e",
  "rgb": {
    "r": 18,
    "g": 74,
    "b": 142
  },
  "hsl": {
    "h": 212.903,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41433,
    "c": 0.12608,
    "h": 256.2
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#124A8E
secondary
#C2853A
accent
#9D34F4
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #124A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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