#123D7E#123D7E

#123D7E is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.1% C 0.120 H 259.0°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#123D7E
RGBrgb(18, 61, 126)
HSLhsl(216, 75%, 28%)
HSVhsv(216, 86%, 49%)
CMYKcmyk(85.7%, 51.6%, 0%, 50.6%)
CIE-LABlab(26.65, 11.66, -40.89)
CIE-LCHlch(26.65, 42.52, 285.91°)
OKLaboklab(37.14% -0.0228 -0.1177)
OKLCHoklch(37.14% 0.12 259)
XYZxyz(5.6827, 4.9717, 20.3948)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123D7E #7E5312
analogous
#12737E #123D7E #1D127E
triadic
#123D7E #7E123D #3D7E12
tetradic
#123D7E #7E1273 #7E5312 #127E1D
square
#123D7E #7E1273 #7E5312 #127E1D
split-complementary
#123D7E #7E1D12 #737E12
monochromatic
#040D1B #0A2348 #123D7E #1A57B4 #2A73E1

Accessibility & contrast

On white

10.53
#123D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #123D7E
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123D7E#FFFFFF#000000##FFFFFF
##123D7E1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154480
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #123d7e;
/* rgb */ color: rgb(18, 61, 126);
/* oklch */ color: oklch(37.1% 0.120 259.0);
Tailwind
colors: {
  custom: {
    50: '#6571a4',
    500: '#123d7e',
    950: '#000000',
  },
}
SCSS
$custom: #123d7e;
$custom-light: #6571a4;
$custom-dark: #000000;
JSON
{
  "hex": "#123d7e",
  "rgb": {
    "r": 18,
    "g": 61,
    "b": 126
  },
  "hsl": {
    "h": 216.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37141,
    "c": 0.11993,
    "h": 259
  },
  "luminance": 0.04972
}

Semantic roles & 50–950 ramp

primary
#123D7E
secondary
#B48338
accent
#A736F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #123D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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