#123D7D#123D7D

#123D7D is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.1% C 0.118 H 258.8°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#123D7D
RGBrgb(18, 61, 125)
HSLhsl(216, 75%, 28%)
HSVhsv(216, 86%, 49%)
CMYKcmyk(85.6%, 51.2%, 0%, 51%)
CIE-LABlab(26.58, 11.24, -40.38)
CIE-LCHlch(26.58, 41.92, 285.55°)
OKLaboklab(37.06% -0.023 -0.1162)
OKLCHoklch(37.06% 0.118 258.8)
XYZxyz(5.6185, 4.9461, 20.0566)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123D7D #7D5212
analogous
#12727D #123D7D #1D127D
triadic
#123D7D #7D123D #3D7D12
tetradic
#123D7D #7D1272 #7D5212 #127D1D
square
#123D7D #7D1272 #7D5212 #127D1D
split-complementary
#123D7D #7D1D12 #727D12
monochromatic
#040D1B #0A2348 #123D7D #1A57B2 #2973E0

Accessibility & contrast

On white

10.56
#123D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#123D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123D7D
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123D7D#FFFFFF#000000##FFFFFF
##123D7D1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16447F
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#004C57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #123d7d;
/* rgb */ color: rgb(18, 61, 125);
/* oklch */ color: oklch(37.1% 0.118 258.8);
Tailwind
colors: {
  custom: {
    50: '#6471a3',
    500: '#123d7d',
    950: '#000000',
  },
}
SCSS
$custom: #123d7d;
$custom-light: #6471a3;
$custom-dark: #000000;
JSON
{
  "hex": "#123d7d",
  "rgb": {
    "r": 18,
    "g": 61,
    "b": 125
  },
  "hsl": {
    "h": 215.888,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37061,
    "c": 0.11848,
    "h": 258.8
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#123D7D
secondary
#B38138
accent
#A636F1
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #123D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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