#123F8E#123F8E

#123F8E is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.9% C 0.140 H 260.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#123F8E
RGBrgb(18, 63, 142)
HSLhsl(218, 78%, 31%)
HSVhsv(218, 87%, 56%)
CMYKcmyk(87.3%, 55.6%, 0%, 44.3%)
CIE-LABlab(28.47, 16.96, -47.89)
CIE-LCHlch(28.47, 50.81, 289.50°)
OKLaboklab(38.92% -0.0222 -0.1383)
OKLCHoklch(38.92% 0.14 260.9)
XYZxyz(6.9077, 5.6357, 26.3097)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123F8E #8E6112
analogous
#127D8E #123F8E #23128E
triadic
#123F8E #8E123F #3F8E12
tetradic
#123F8E #8E127D #8E6112 #128E23
square
#123F8E #8E127D #8E6112 #128E23
split-complementary
#123F8E #8E2312 #7D8E12
monochromatic
#040F21 #0B2758 #123F8E #1957C4 #3575E5

Accessibility & contrast

On white

9.87
#123F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#123F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123F8E
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123F8E#FFFFFF#000000##FFFFFF
##123F8E1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #123f8e;
/* rgb */ color: rgb(18, 63, 142);
/* oklch */ color: oklch(38.9% 0.140 260.9);
Tailwind
colors: {
  custom: {
    50: '#6973b0',
    500: '#123f8e',
    950: '#000000',
  },
}
SCSS
$custom: #123f8e;
$custom-light: #6973b0;
$custom-dark: #000000;
JSON
{
  "hex": "#123f8e",
  "rgb": {
    "r": 18,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 218.226,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38917,
    "c": 0.14005,
    "h": 260.9
  },
  "luminance": 0.05637
}

Semantic roles & 50–950 ramp

primary
#123F8E
secondary
#C2913A
accent
#AE34F4
background
#F6F6FA
surface
#ECECF5
border
#C7C7CF
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #123F8E

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

Preview Lab → · Contrast checker → · Palette generator →

#123F8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva