#123C7D#123C7D

#123C7D is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.8% C 0.120 H 259.3°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#123C7D
RGBrgb(18, 60, 125)
HSLhsl(216, 75%, 28%)
HSVhsv(216, 86%, 49%)
CMYKcmyk(85.6%, 52%, 0%, 51%)
CIE-LABlab(26.27, 11.94, -40.88)
CIE-LCHlch(26.27, 42.58, 286.29°)
OKLaboklab(36.83% -0.0222 -0.1177)
OKLCHoklch(36.83% 0.12 259.3)
XYZxyz(5.5656, 4.8403, 20.0390)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123C7D #7D5312
analogous
#12717D #123C7D #1E127D
triadic
#123C7D #7D123C #3C7D12
tetradic
#123C7D #7D1271 #7D5312 #127D1E
square
#123C7D #7D1271 #7D5312 #127D1E
split-complementary
#123C7D #7D1E12 #717D12
monochromatic
#040D1B #0A2248 #123C7D #1A56B2 #2971E0

Accessibility & contrast

On white

10.67
#123C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#123C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123C7D
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123C7D#FFFFFF#000000##FFFFFF
##123C7D1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13437F
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#004C56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #123c7d;
/* rgb */ color: rgb(18, 60, 125);
/* oklch */ color: oklch(36.8% 0.120 259.3);
Tailwind
colors: {
  custom: {
    50: '#6471a3',
    500: '#123c7d',
    950: '#000000',
  },
}
SCSS
$custom: #123c7d;
$custom-light: #6471a3;
$custom-dark: #000000;
JSON
{
  "hex": "#123c7d",
  "rgb": {
    "r": 18,
    "g": 60,
    "b": 125
  },
  "hsl": {
    "h": 216.449,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36827,
    "c": 0.11979,
    "h": 259.3
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#123C7D
secondary
#B38338
accent
#A836F1
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #123C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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