#123A7A#123A7A

#123A7A is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.1% C 0.118 H 259.7°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#123A7A
RGBrgb(18, 58, 122)
HSLhsl(217, 74%, 27%)
HSVhsv(217, 85%, 48%)
CMYKcmyk(85.2%, 52.5%, 0%, 52.2%)
CIE-LABlab(25.44, 12.09, -40.33)
CIE-LCHlch(25.44, 42.11, 286.68°)
OKLaboklab(36.12% -0.0211 -0.1162)
OKLCHoklch(36.12% 0.118 259.7)
XYZxyz(5.2741, 4.5592, 19.0106)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123A7A #7A5212
analogous
#126E7A #123A7A #1E127A
triadic
#123A7A #7A123A #3A7A12
tetradic
#123A7A #7A126E #7A5212 #127A1E
square
#123A7A #7A126E #7A5212 #127A1E
split-complementary
#123A7A #7A1E12 #6E7A12
monochromatic
#040D1B #0A2145 #123A7A #1A53AF #276EDF

Accessibility & contrast

On white

10.98
#123A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#123A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123A7A
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123A7A#FFFFFF#000000##FFFFFF
##123A7A1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11417C
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#004A54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #123a7a;
/* rgb */ color: rgb(18, 58, 122);
/* oklch */ color: oklch(36.1% 0.118 259.7);
Tailwind
colors: {
  custom: {
    50: '#646fa1',
    500: '#123a7a',
    950: '#000000',
  },
}
SCSS
$custom: #123a7a;
$custom-light: #646fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#123a7a",
  "rgb": {
    "r": 18,
    "g": 58,
    "b": 122
  },
  "hsl": {
    "h": 216.923,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36116,
    "c": 0.11806,
    "h": 259.7
  },
  "luminance": 0.0456
}

Semantic roles & 50–950 ramp

primary
#123A7A
secondary
#B08238
accent
#A937F1
background
#F6F6FA
surface
#EBECF3
border
#C6C7CD
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #123A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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