#124EA7#124EA7

#124EA7 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.155 H 259.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#124EA7
RGBrgb(18, 78, 167)
HSLhsl(216, 81%, 36%)
HSVhsv(216, 89%, 65%)
CMYKcmyk(89.2%, 53.3%, 0%, 34.5%)
CIE-LABlab(34.73, 16.94, -52.90)
CIE-LCHlch(34.73, 55.54, 287.76°)
OKLaboklab(44.29% -0.0291 -0.1527)
OKLCHoklch(44.29% 0.155 259.2)
XYZxyz(9.9463, 8.3661, 37.6423)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#124EA7 #A76B12
analogous
#1299A7 #124EA7 #2112A7
triadic
#124EA7 #A7124E #4EA712
tetradic
#124EA7 #A71299 #A76B12 #12A721
square
#124EA7 #A71299 #A76B12 #12A721
split-complementary
#124EA7 #A72112 #99A712
monochromatic
#061A39 #0C3470 #124EA7 #1868DE #488AEB

Accessibility & contrast

On white

7.86
#124EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#124EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #124EA7
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##124EA7#FFFFFF#000000##FFFFFF
##124EA71.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0659AA
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #124ea7;
/* rgb */ color: rgb(18, 78, 167);
/* oklch */ color: oklch(44.3% 0.155 259.2);
Tailwind
colors: {
  custom: {
    50: '#6f7ec2',
    500: '#124ea7',
    950: '#000000',
  },
}
SCSS
$custom: #124ea7;
$custom-light: #6f7ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#124ea7",
  "rgb": {
    "r": 18,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 215.839,
    "s": 80.541,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44289,
    "c": 0.15543,
    "h": 259.2
  },
  "luminance": 0.08367
}

Semantic roles & 50–950 ramp

primary
#124EA7
secondary
#CC9749
accent
#A731F7
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #124EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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