#123C7F#123C7F

#123C7F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.0% C 0.123 H 259.7°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#123C7F
RGBrgb(18, 60, 127)
HSLhsl(217, 75%, 28%)
HSVhsv(217, 86%, 50%)
CMYKcmyk(85.8%, 52.8%, 0%, 50.2%)
CIE-LABlab(26.42, 12.79, -41.89)
CIE-LCHlch(26.42, 43.80, 286.97°)
OKLaboklab(36.99% -0.0219 -0.1207)
OKLCHoklch(36.99% 0.123 259.7)
XYZxyz(5.6947, 4.8919, 20.7187)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123C7F #7F5512
analogous
#12727F #123C7F #1F127F
triadic
#123C7F #7F123C #3C7F12
tetradic
#123C7F #7F1272 #7F5512 #127F1F
square
#123C7F #7F1272 #7F5512 #127F1F
split-complementary
#123C7F #7F1F12 #727F12
monochromatic
#040D1B #0A2349 #123C7F #1A55B5 #2B71E1

Accessibility & contrast

On white

10.61
#123C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#123C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123C7F
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123C7F#FFFFFF#000000##FFFFFF
##123C7F1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #123c7f;
/* rgb */ color: rgb(18, 60, 127);
/* oklch */ color: oklch(37.0% 0.123 259.7);
Tailwind
colors: {
  custom: {
    50: '#6571a5',
    500: '#123c7f',
    950: '#000000',
  },
}
SCSS
$custom: #123c7f;
$custom-light: #6571a5;
$custom-dark: #000000;
JSON
{
  "hex": "#123c7f",
  "rgb": {
    "r": 18,
    "g": 60,
    "b": 127
  },
  "hsl": {
    "h": 216.881,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36989,
    "c": 0.12267,
    "h": 259.7
  },
  "luminance": 0.04893
}

Semantic roles & 50–950 ramp

primary
#123C7F
secondary
#B58538
accent
#A936F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #123C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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