#123D7F#123D7F

#123D7F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.2% C 0.121 H 259.2°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#123D7F
RGBrgb(18, 61, 127)
HSLhsl(216, 75%, 28%)
HSVhsv(216, 86%, 50%)
CMYKcmyk(85.8%, 52%, 0%, 50.2%)
CIE-LABlab(26.73, 12.08, -41.40)
CIE-LCHlch(26.73, 43.13, 286.27°)
OKLaboklab(37.22% -0.0227 -0.1192)
OKLCHoklch(37.22% 0.121 259.2)
XYZxyz(5.7476, 4.9977, 20.7363)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123D7F #7F5412
analogous
#12737F #123D7F #1D127F
triadic
#123D7F #7F123D #3D7F12
tetradic
#123D7F #7F1273 #7F5412 #127F1D
square
#123D7F #7F1273 #7F5412 #127F1D
split-complementary
#123D7F #7F1D12 #737F12
monochromatic
#040D1B #0A2349 #123D7F #1A57B5 #2B72E1

Accessibility & contrast

On white

10.50
#123D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#123D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123D7F
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123D7F#FFFFFF#000000##FFFFFF
##123D7F1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134481
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #123d7f;
/* rgb */ color: rgb(18, 61, 127);
/* oklch */ color: oklch(37.2% 0.121 259.2);
Tailwind
colors: {
  custom: {
    50: '#6571a5',
    500: '#123d7f',
    950: '#000000',
  },
}
SCSS
$custom: #123d7f;
$custom-light: #6571a5;
$custom-dark: #000000;
JSON
{
  "hex": "#123d7f",
  "rgb": {
    "r": 18,
    "g": 61,
    "b": 127
  },
  "hsl": {
    "h": 216.33,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37221,
    "c": 0.12136,
    "h": 259.2
  },
  "luminance": 0.04998
}

Semantic roles & 50–950 ramp

primary
#123D7F
secondary
#B58438
accent
#A836F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #123D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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