#123062#123062

#123062 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.8% C 0.096 H 260.1°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#123062
RGBrgb(18, 48, 98)
HSLhsl(218, 69%, 23%)
HSVhsv(218, 82%, 38%)
CMYKcmyk(81.6%, 51%, 0%, 61.6%)
CIE-LABlab(20.53, 9.04, -32.82)
CIE-LCHlch(20.53, 34.04, 285.39°)
OKLaboklab(31.78% -0.0165 -0.0943)
OKLCHoklch(31.78% 0.096 260.1)
XYZxyz(3.5102, 3.1239, 11.9709)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123062 #624412
analogous
#125862 #123062 #1C1262
triadic
#123062 #621230 #306212
tetradic
#123062 #621258 #624412 #12621C
square
#123062 #621258 #624412 #12621C
split-complementary
#123062 #621C12 #586212
monochromatic
#050D1A #09172E #123062 #1B4996 #2563C9

Accessibility & contrast

On white

12.92
#123062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#123062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123062
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123062#FFFFFF#000000##FFFFFF
##1230621.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143564
Deuteranopia (green-blind)
#002E61
Tritanopia (blue-blind)
#003C44
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #123062;
/* rgb */ color: rgb(18, 48, 98);
/* oklch */ color: oklch(31.8% 0.096 260.1);
Tailwind
colors: {
  custom: {
    50: '#5e678f',
    500: '#123062',
    950: '#000000',
  },
}
SCSS
$custom: #123062;
$custom-light: #5e678f;
$custom-dark: #000000;
JSON
{
  "hex": "#123062",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 98
  },
  "hsl": {
    "h": 217.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31784,
    "c": 0.0957,
    "h": 260.1
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#123062
secondary
#9A7436
accent
#AA3CEC
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #123062

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

Preview Lab → · Contrast checker → · Palette generator →

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