#123A7E#123A7E

#123A7E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.4% C 0.124 H 260.4°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#123A7E
RGBrgb(18, 58, 126)
HSLhsl(218, 75%, 28%)
HSVhsv(218, 86%, 49%)
CMYKcmyk(85.7%, 54%, 0%, 50.6%)
CIE-LABlab(25.74, 13.78, -42.36)
CIE-LCHlch(25.74, 44.55, 288.02°)
OKLaboklab(36.45% -0.0206 -0.1221)
OKLCHoklch(36.45% 0.124 260.4)
XYZxyz(5.5270, 4.6604, 20.3429)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123A7E #7E5612
analogous
#12707E #123A7E #20127E
triadic
#123A7E #7E123A #3A7E12
tetradic
#123A7E #7E1270 #7E5612 #127E20
square
#123A7E #7E1270 #7E5612 #127E20
split-complementary
#123A7E #7E2012 #707E12
monochromatic
#040C1B #0A2148 #123A7E #1A53B4 #2A6EE1

Accessibility & contrast

On white

10.87
#123A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #123A7E
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123A7E#FFFFFF#000000##FFFFFF
##123A7E1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094280
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #123a7e;
/* rgb */ color: rgb(18, 58, 126);
/* oklch */ color: oklch(36.4% 0.124 260.4);
Tailwind
colors: {
  custom: {
    50: '#656fa4',
    500: '#123a7e',
    950: '#000000',
  },
}
SCSS
$custom: #123a7e;
$custom-light: #656fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#123a7e",
  "rgb": {
    "r": 18,
    "g": 58,
    "b": 126
  },
  "hsl": {
    "h": 217.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36445,
    "c": 0.12385,
    "h": 260.4
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#123A7E
secondary
#B48638
accent
#AC36F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #123A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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