#123A7F#123A7F

#123A7F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.5% C 0.125 H 260.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#123A7F
RGBrgb(18, 58, 127)
HSLhsl(218, 75%, 28%)
HSVhsv(218, 86%, 50%)
CMYKcmyk(85.8%, 54.3%, 0%, 50.2%)
CIE-LABlab(25.82, 14.20, -42.87)
CIE-LCHlch(25.82, 45.16, 288.33°)
OKLaboklab(36.53% -0.0204 -0.1236)
OKLCHoklch(36.53% 0.125 260.6)
XYZxyz(5.5919, 4.6863, 20.6844)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123A7F #7F5712
analogous
#12707F #123A7F #21127F
triadic
#123A7F #7F123A #3A7F12
tetradic
#123A7F #7F1270 #7F5712 #127F21
square
#123A7F #7F1270 #7F5712 #127F21
split-complementary
#123A7F #7F2112 #707F12
monochromatic
#040C1B #0A2249 #123A7F #1A52B5 #2B6DE1

Accessibility & contrast

On white

10.84
#123A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#123A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123A7F
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123A7F#FFFFFF#000000##FFFFFF
##123A7F1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #123a7f;
/* rgb */ color: rgb(18, 58, 127);
/* oklch */ color: oklch(36.5% 0.125 260.6);
Tailwind
colors: {
  custom: {
    50: '#656fa5',
    500: '#123a7f',
    950: '#000000',
  },
}
SCSS
$custom: #123a7f;
$custom-light: #656fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#123a7f",
  "rgb": {
    "r": 18,
    "g": 58,
    "b": 127
  },
  "hsl": {
    "h": 217.982,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36529,
    "c": 0.12529,
    "h": 260.6
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#123A7F
secondary
#B58738
accent
#AD36F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #123A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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