#123C7E#123C7E

#123C7E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 36.9% C 0.121 H 259.5°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#123C7E
RGBrgb(18, 60, 126)
HSLhsl(217, 75%, 28%)
HSVhsv(217, 86%, 49%)
CMYKcmyk(85.7%, 52.4%, 0%, 50.6%)
CIE-LABlab(26.35, 12.36, -41.38)
CIE-LCHlch(26.35, 43.19, 286.63°)
OKLaboklab(36.91% -0.0221 -0.1192)
OKLCHoklch(36.91% 0.121 259.5)
XYZxyz(5.6298, 4.8660, 20.3771)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123C7E #7E5412
analogous
#12727E #123C7E #1E127E
triadic
#123C7E #7E123C #3C7E12
tetradic
#123C7E #7E1272 #7E5412 #127E1E
square
#123C7E #7E1272 #7E5412 #127E1E
split-complementary
#123C7E #7E1E12 #727E12
monochromatic
#040D1B #0A2248 #123C7E #1A55B4 #2A71E1

Accessibility & contrast

On white

10.64
#123C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#123C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123C7E
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123C7E#FFFFFF#000000##FFFFFF
##123C7E1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114380
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#004C57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #123c7e;
/* rgb */ color: rgb(18, 60, 126);
/* oklch */ color: oklch(36.9% 0.121 259.5);
Tailwind
colors: {
  custom: {
    50: '#6571a4',
    500: '#123c7e',
    950: '#000000',
  },
}
SCSS
$custom: #123c7e;
$custom-light: #6571a4;
$custom-dark: #000000;
JSON
{
  "hex": "#123c7e",
  "rgb": {
    "r": 18,
    "g": 60,
    "b": 126
  },
  "hsl": {
    "h": 216.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36907,
    "c": 0.12123,
    "h": 259.5
  },
  "luminance": 0.04867
}

Semantic roles & 50–950 ramp

primary
#123C7E
secondary
#B48438
accent
#A936F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #123C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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