#123EA1#123EA1

#123EA1 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.167 H 263.0°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#123EA1
RGBrgb(18, 62, 161)
HSLhsl(222, 80%, 35%)
HSVhsv(222, 89%, 63%)
CMYKcmyk(88.8%, 61.5%, 0%, 36.9%)
CIE-LABlab(29.78, 25.42, -57.36)
CIE-LCHlch(29.78, 62.74, 293.90°)
OKLaboklab(40.39% -0.0203 -0.1661)
OKLCHoklch(40.39% 0.167 263)
XYZxyz(8.4028, 6.1460, 34.4547)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123EA1 #A17512
analogous
#1286A1 #123EA1 #2D12A1
triadic
#123EA1 #A1123E #3EA112
tetradic
#123EA1 #A11286 #A17512 #12A12D
square
#123EA1 #A11286 #A17512 #12A12D
split-complementary
#123EA1 #A12D12 #86A112
monochromatic
#061433 #0C296A #123EA1 #1853D8 #4377EA

Accessibility & contrast

On white

9.42
#123EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#123EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123EA1
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123EA1#FFFFFF#000000##FFFFFF
##123EA11.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #123ea1;
/* rgb */ color: rgb(18, 62, 161);
/* oklch */ color: oklch(40.4% 0.167 263.0);
Tailwind
colors: {
  custom: {
    50: '#6e72be',
    500: '#123ea1',
    950: '#000000',
  },
}
SCSS
$custom: #123ea1;
$custom-light: #6e72be;
$custom-dark: #000000;
JSON
{
  "hex": "#123ea1",
  "rgb": {
    "r": 18,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 221.538,
    "s": 79.888,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40393,
    "c": 0.16733,
    "h": 263
  },
  "luminance": 0.06147
}

Semantic roles & 50–950 ramp

primary
#123EA1
secondary
#CAA145
accent
#BA31F6
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #123EA1

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

Preview Lab → · Contrast checker → · Palette generator →

#123EA1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva