#123271#123271

#123271 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.5% C 0.116 H 262.0°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#123271
RGBrgb(18, 50, 113)
HSLhsl(220, 73%, 26%)
HSVhsv(220, 84%, 44%)
CMYKcmyk(84.1%, 55.8%, 0%, 55.7%)
CIE-LABlab(22.31, 14.00, -39.68)
CIE-LCHlch(22.31, 42.07, 289.43°)
OKLaboklab(33.51% -0.0161 -0.1144)
OKLCHoklch(33.51% 0.116 262)
XYZxyz(4.3696, 3.6015, 16.0845)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123271 #715112
analogous
#126171 #123271 #211271
triadic
#123271 #711232 #327112
tetradic
#123271 #711261 #715112 #127121
square
#123271 #711261 #715112 #127121
split-complementary
#123271 #712112 #617112
monochromatic
#040C1A #0A1B3C #123271 #1A49A6 #2361DB

Accessibility & contrast

On white

12.21
#123271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #123271
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123271#FFFFFF#000000##FFFFFF
##1232711.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023A73
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #123271;
/* rgb */ color: rgb(18, 50, 113);
/* oklch */ color: oklch(33.5% 0.116 262.0);
Tailwind
colors: {
  custom: {
    50: '#62699a',
    500: '#123271',
    950: '#000000',
  },
}
SCSS
$custom: #123271;
$custom-light: #62699a;
$custom-dark: #000000;
JSON
{
  "hex": "#123271",
  "rgb": {
    "r": 18,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 219.789,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33506,
    "c": 0.11552,
    "h": 262
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#123271
secondary
#A88237
accent
#B239EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #123271

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

Preview Lab → · Contrast checker → · Palette generator →

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