#123174#123174

#123174 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.5% C 0.121 H 262.9°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#123174
RGBrgb(18, 49, 116)
HSLhsl(221, 73%, 26%)
HSVhsv(221, 84%, 45%)
CMYKcmyk(84.5%, 57.8%, 0%, 54.5%)
CIE-LABlab(22.25, 15.99, -41.69)
CIE-LCHlch(22.25, 44.65, 290.99°)
OKLaboklab(33.54% -0.015 -0.1203)
OKLCHoklch(33.54% 0.121 262.9)
XYZxyz(4.4990, 3.5856, 16.9746)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123174 #745512
analogous
#126274 #123174 #241274
triadic
#123174 #741231 #317412
tetradic
#123174 #741262 #745512 #127424
square
#123174 #741262 #745512 #127424
split-complementary
#123174 #742412 #627412
monochromatic
#040B1A #0A1B3F #123174 #1A47A9 #235EDD

Accessibility & contrast

On white

12.23
#123174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#123174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123174
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123174#FFFFFF#000000##FFFFFF
##1231741.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#00424D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #123174;
/* rgb */ color: rgb(18, 49, 116);
/* oklch */ color: oklch(33.5% 0.121 262.9);
Tailwind
colors: {
  custom: {
    50: '#62689d',
    500: '#123174',
    950: '#000000',
  },
}
SCSS
$custom: #123174;
$custom-light: #62689d;
$custom-dark: #000000;
JSON
{
  "hex": "#123174",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 221.02,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3354,
    "c": 0.12127,
    "h": 262.9
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#123174
secondary
#AB8637
accent
#B638F0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #123174

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

Preview Lab → · Contrast checker → · Palette generator →

#123174 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva