#123270#123270

#123270 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.4% C 0.114 H 261.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#123270
RGBrgb(18, 50, 112)
HSLhsl(220, 72%, 25%)
HSVhsv(220, 84%, 44%)
CMYKcmyk(83.9%, 55.4%, 0%, 56.1%)
CIE-LABlab(22.23, 13.57, -39.16)
CIE-LCHlch(22.23, 41.45, 289.11°)
OKLaboklab(33.42% -0.0162 -0.1129)
OKLCHoklch(33.42% 0.114 261.8)
XYZxyz(4.3136, 3.5791, 15.7896)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123270 #705012
analogous
#126170 #123270 #211270
triadic
#123270 #701232 #327012
tetradic
#123270 #701261 #705012 #127021
square
#123270 #701261 #705012 #127021
split-complementary
#123270 #702112 #617012
monochromatic
#040C1A #0A1A3B #123270 #1A4AA5 #2361D9

Accessibility & contrast

On white

12.24
#123270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #123270
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123270#FFFFFF#000000##FFFFFF
##1232701.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043A72
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #123270;
/* rgb */ color: rgb(18, 50, 112);
/* oklch */ color: oklch(33.4% 0.114 261.8);
Tailwind
colors: {
  custom: {
    50: '#61699a',
    500: '#123270',
    950: '#000000',
  },
}
SCSS
$custom: #123270;
$custom-light: #61699a;
$custom-dark: #000000;
JSON
{
  "hex": "#123270",
  "rgb": {
    "r": 18,
    "g": 50,
    "b": 112
  },
  "hsl": {
    "h": 219.574,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3342,
    "c": 0.11404,
    "h": 261.8
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#123270
secondary
#A78137
accent
#B139EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #123270

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

Preview Lab → · Contrast checker → · Palette generator →

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