#123274#123274

#123274 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.8% C 0.120 H 262.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#123274
RGBrgb(18, 50, 116)
HSLhsl(220, 73%, 26%)
HSVhsv(220, 84%, 45%)
CMYKcmyk(84.5%, 56.9%, 0%, 54.5%)
CIE-LABlab(22.55, 15.27, -41.21)
CIE-LCHlch(22.55, 43.94, 290.33°)
OKLaboklab(33.77% -0.0157 -0.1189)
OKLCHoklch(33.77% 0.12 262.5)
XYZxyz(4.5413, 3.6702, 16.9887)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123274 #745412
analogous
#126374 #123274 #231274
triadic
#123274 #741232 #327412
tetradic
#123274 #741263 #745412 #127423
square
#123274 #741263 #745412 #127423
split-complementary
#123274 #742312 #637412
monochromatic
#040B1A #0A1B3F #123274 #1A49A9 #2360DD

Accessibility & contrast

On white

12.11
#123274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#123274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123274
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123274#FFFFFF#000000##FFFFFF
##1232741.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B76
Deuteranopia (green-blind)
#003273
Tritanopia (blue-blind)
#00424D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #123274;
/* rgb */ color: rgb(18, 50, 116);
/* oklch */ color: oklch(33.8% 0.120 262.5);
Tailwind
colors: {
  custom: {
    50: '#62699d',
    500: '#123274',
    950: '#000000',
  },
}
SCSS
$custom: #123274;
$custom-light: #62699d;
$custom-dark: #000000;
JSON
{
  "hex": "#123274",
  "rgb": {
    "r": 18,
    "g": 50,
    "b": 116
  },
  "hsl": {
    "h": 220.408,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33766,
    "c": 0.11993,
    "h": 262.5
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#123274
secondary
#AB8537
accent
#B438F0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #123274

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

Preview Lab → · Contrast checker → · Palette generator →

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