#124DFF#124DFF

#124DFF is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.2% C 0.266 H 264.2°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#124DFF
RGBrgb(18, 77, 255)
HSLhsl(225, 100%, 54%)
HSVhsv(225, 93%, 100%)
CMYKcmyk(92.9%, 69.8%, 0%, 0%)
CIE-LABlab(42.24, 51.00, -91.32)
CIE-LCHlch(42.24, 104.60, 299.18°)
OKLaboklab(52.22% -0.0271 -0.265)
OKLCHoklch(52.22% 0.266 264.2)
XYZxyz(20.9469, 12.6535, 95.9267)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#124DFF #FFC412
analogous
#12C4FF #124DFF #4D12FF
triadic
#124DFF #FF124D #4DFF12
tetradic
#124DFF #FF12C4 #FFC412 #12FF4D
square
#124DFF #FF12C4 #FFC412 #12FF4D
split-complementary
#124DFF #FF4D12 #C4FF12
monochromatic
#002597 #0035D4 #124DFF #4F7BFF #8CA9FF

Accessibility & contrast

On white

5.95
#124DFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#124DFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #124DFF
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##124DFF#FFFFFF#000000##FFFFFF
##124DFF1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FFF
Deuteranopia (green-blind)
#0059FC
Tritanopia (blue-blind)
#0080A1
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #124dff;
/* rgb */ color: rgb(18, 77, 255);
/* oklch */ color: oklch(52.2% 0.266 264.2);
Tailwind
colors: {
  custom: {
    50: '#877fff',
    500: '#124dff',
    950: '#000000',
  },
}
SCSS
$custom: #124dff;
$custom-light: #877fff;
$custom-dark: #000000;
JSON
{
  "hex": "#124dff",
  "rgb": {
    "r": 18,
    "g": 77,
    "b": 255
  },
  "hsl": {
    "h": 225.063,
    "s": 100,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52219,
    "c": 0.26639,
    "h": 264.2
  },
  "luminance": 0.12656
}

Semantic roles & 50–950 ramp

primary
#124DFF
secondary
#E9D084
accent
#CA29FF
background
#F9F7FF
surface
#F2EEFF
border
#CCC9D7
text
#0E0A18
muted
#7E7C86

Preview Lab

Preview with #124DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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