#123272#123272

#123272 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.117 H 262.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#123272
RGBrgb(18, 50, 114)
HSLhsl(220, 73%, 26%)
HSVhsv(220, 84%, 45%)
CMYKcmyk(84.2%, 56.1%, 0%, 55.3%)
CIE-LABlab(22.39, 14.42, -40.19)
CIE-LCHlch(22.39, 42.70, 289.74°)
OKLaboklab(33.59% -0.0159 -0.1159)
OKLCHoklch(33.59% 0.117 262.2)
XYZxyz(4.4262, 3.6242, 16.3826)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123272 #725212
analogous
#126272 #123272 #221272
triadic
#123272 #721232 #327212
tetradic
#123272 #721262 #725212 #127222
square
#123272 #721262 #725212 #127222
split-complementary
#123272 #722212 #627212
monochromatic
#040C1A #0A1B3D #123272 #1A49A7 #2360DC

Accessibility & contrast

On white

12.17
#123272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #123272
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123272#FFFFFF#000000##FFFFFF
##1232721.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#00424C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #123272;
/* rgb */ color: rgb(18, 50, 114);
/* oklch */ color: oklch(33.6% 0.117 262.2);
Tailwind
colors: {
  custom: {
    50: '#62699b',
    500: '#123272',
    950: '#000000',
  },
}
SCSS
$custom: #123272;
$custom-light: #62699b;
$custom-dark: #000000;
JSON
{
  "hex": "#123272",
  "rgb": {
    "r": 18,
    "g": 50,
    "b": 114
  },
  "hsl": {
    "h": 220,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33592,
    "c": 0.11699,
    "h": 262.2
  },
  "luminance": 0.03625
}

Semantic roles & 50–950 ramp

primary
#123272
secondary
#A98337
accent
#B238EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #123272

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

Preview Lab → · Contrast checker → · Palette generator →

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