#123A8F#123A8F

#123A8F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.148 H 262.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#123A8F
RGBrgb(18, 58, 143)
HSLhsl(221, 78%, 32%)
HSVhsv(221, 87%, 56%)
CMYKcmyk(87.4%, 59.4%, 0%, 43.9%)
CIE-LABlab(27.12, 20.87, -50.71)
CIE-LCHlch(27.12, 54.84, 292.37°)
OKLaboklab(37.92% -0.019 -0.1466)
OKLCHoklch(37.92% 0.148 262.6)
XYZxyz(6.7187, 5.1370, 26.6187)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123A8F #8F6712
analogous
#12798F #123A8F #29128F
triadic
#123A8F #8F123A #3A8F12
tetradic
#123A8F #8F1279 #8F6712 #128F29
square
#123A8F #8F1279 #8F6712 #128F29
split-complementary
#123A8F #8F2912 #798F12
monochromatic
#040E22 #0B2459 #123A8F #1950C5 #366EE6

Accessibility & contrast

On white

10.36
#123A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#123A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123A8F
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123A8F#FFFFFF#000000##FFFFFF
##123A8F1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #123a8f;
/* rgb */ color: rgb(18, 58, 143);
/* oklch */ color: oklch(37.9% 0.148 262.6);
Tailwind
colors: {
  custom: {
    50: '#696fb1',
    500: '#123a8f',
    950: '#000000',
  },
}
SCSS
$custom: #123a8f;
$custom-light: #696fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#123a8f",
  "rgb": {
    "r": 18,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 220.8,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37921,
    "c": 0.14787,
    "h": 262.6
  },
  "luminance": 0.05138
}

Semantic roles & 50–950 ramp

primary
#123A8F
secondary
#C3973A
accent
#B734F4
background
#F6F6FB
surface
#ECECF6
border
#C7C7D0
text
#080711
muted
#7A7A80

Preview Lab

Preview with #123A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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