#123C8F#123C8F

#123C8F is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.145 H 262.0°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#123C8F
RGBrgb(18, 60, 143)
HSLhsl(220, 78%, 32%)
HSVhsv(220, 87%, 56%)
CMYKcmyk(87.4%, 58%, 0%, 43.9%)
CIE-LABlab(27.69, 19.47, -49.78)
CIE-LCHlch(27.69, 53.46, 291.36°)
OKLaboklab(38.35% -0.0202 -0.1439)
OKLCHoklch(38.35% 0.145 262)
XYZxyz(6.8214, 5.3426, 26.6530)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123C8F #8F6512
analogous
#127B8F #123C8F #27128F
triadic
#123C8F #8F123C #3C8F12
tetradic
#123C8F #8F127B #8F6512 #128F27
square
#123C8F #8F127B #8F6512 #128F27
split-complementary
#123C8F #8F2712 #7B8F12
monochromatic
#040E22 #0B2559 #123C8F #1953C5 #3671E6

Accessibility & contrast

On white

10.15
#123C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#123C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123C8F
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123C8F#FFFFFF#000000##FFFFFF
##123C8F1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #123c8f;
/* rgb */ color: rgb(18, 60, 143);
/* oklch */ color: oklch(38.3% 0.145 262.0);
Tailwind
colors: {
  custom: {
    50: '#6971b0',
    500: '#123c8f',
    950: '#000000',
  },
}
SCSS
$custom: #123c8f;
$custom-light: #6971b0;
$custom-dark: #000000;
JSON
{
  "hex": "#123c8f",
  "rgb": {
    "r": 18,
    "g": 60,
    "b": 143
  },
  "hsl": {
    "h": 219.84,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38349,
    "c": 0.14531,
    "h": 262
  },
  "luminance": 0.05343
}

Semantic roles & 50–950 ramp

primary
#123C8F
secondary
#C3953A
accent
#B334F4
background
#F6F6FA
surface
#ECECF5
border
#C7C7CF
text
#080711
muted
#7A7A80

Preview Lab

Preview with #123C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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