#123A7D#123A7D

#123A7D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.4% C 0.122 H 260.3°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#123A7D
RGBrgb(18, 58, 125)
HSLhsl(218, 75%, 28%)
HSVhsv(218, 86%, 49%)
CMYKcmyk(85.6%, 53.6%, 0%, 51%)
CIE-LABlab(25.67, 13.36, -41.86)
CIE-LCHlch(25.67, 43.94, 287.70°)
OKLaboklab(36.36% -0.0207 -0.1206)
OKLCHoklch(36.36% 0.122 260.3)
XYZxyz(5.4628, 4.6347, 20.0047)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123A7D #7D5512
analogous
#126F7D #123A7D #1F127D
triadic
#123A7D #7D123A #3A7D12
tetradic
#123A7D #7D126F #7D5512 #127D1F
square
#123A7D #7D126F #7D5512 #127D1F
split-complementary
#123A7D #7D1F12 #6F7D12
monochromatic
#040C1B #0A2148 #123A7D #1A53B2 #296EE0

Accessibility & contrast

On white

10.90
#123A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#123A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123A7D
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123A7D#FFFFFF#000000##FFFFFF
##123A7D1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B427F
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #123a7d;
/* rgb */ color: rgb(18, 58, 125);
/* oklch */ color: oklch(36.4% 0.122 260.3);
Tailwind
colors: {
  custom: {
    50: '#646fa3',
    500: '#123a7d',
    950: '#000000',
  },
}
SCSS
$custom: #123a7d;
$custom-light: #646fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#123a7d",
  "rgb": {
    "r": 18,
    "g": 58,
    "b": 125
  },
  "hsl": {
    "h": 217.57,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36362,
    "c": 0.1224,
    "h": 260.3
  },
  "luminance": 0.04635
}

Semantic roles & 50–950 ramp

primary
#123A7D
secondary
#B38538
accent
#AC36F1
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #123A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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