#123D8F#123D8F

#123D8F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.144 H 261.7°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#123D8F
RGBrgb(18, 61, 143)
HSLhsl(219, 78%, 32%)
HSVhsv(219, 87%, 56%)
CMYKcmyk(87.4%, 57.3%, 0%, 43.9%)
CIE-LABlab(27.98, 18.77, -49.32)
CIE-LCHlch(27.98, 52.77, 290.84°)
OKLaboklab(38.57% -0.0208 -0.1425)
OKLCHoklch(38.57% 0.144 261.7)
XYZxyz(6.8743, 5.4484, 26.6706)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123D8F #8F6412
analogous
#127C8F #123D8F #26128F
triadic
#123D8F #8F123D #3D8F12
tetradic
#123D8F #8F127C #8F6412 #128F26
square
#123D8F #8F127C #8F6412 #128F26
split-complementary
#123D8F #8F2612 #7C8F12
monochromatic
#040F22 #0B2659 #123D8F #1954C5 #3672E6

Accessibility & contrast

On white

10.05
#123D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#123D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123D8F
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123D8F#FFFFFF#000000##FFFFFF
##123D8F1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #123d8f;
/* rgb */ color: rgb(18, 61, 143);
/* oklch */ color: oklch(38.6% 0.144 261.7);
Tailwind
colors: {
  custom: {
    50: '#6971b0',
    500: '#123d8f',
    950: '#000000',
  },
}
SCSS
$custom: #123d8f;
$custom-light: #6971b0;
$custom-dark: #000000;
JSON
{
  "hex": "#123d8f",
  "rgb": {
    "r": 18,
    "g": 61,
    "b": 143
  },
  "hsl": {
    "h": 219.36,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38565,
    "c": 0.14402,
    "h": 261.7
  },
  "luminance": 0.05449
}

Semantic roles & 50–950 ramp

primary
#123D8F
secondary
#C3943A
accent
#B234F4
background
#F6F6FA
surface
#ECECF5
border
#C7C7CF
text
#080711
muted
#7A7A80

Preview Lab

Preview with #123D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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