#123262#123262

#123262 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.3% C 0.093 H 258.6°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#123262
RGBrgb(18, 50, 98)
HSLhsl(216, 69%, 23%)
HSVhsv(216, 82%, 38%)
CMYKcmyk(81.6%, 49%, 0%, 61.6%)
CIE-LABlab(21.17, 7.59, -31.79)
CIE-LCHlch(21.17, 32.69, 283.42°)
OKLaboklab(32.28% -0.0184 -0.0912)
OKLCHoklch(32.28% 0.093 258.6)
XYZxyz(3.5939, 3.2912, 11.9988)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123262 #624212
analogous
#125A62 #123262 #1A1262
triadic
#123262 #621232 #326212
tetradic
#123262 #62125A #624212 #12621A
square
#123262 #62125A #624212 #12621A
split-complementary
#123262 #621A12 #5A6212
monochromatic
#050D1A #09182E #123262 #1B4C96 #2567C9

Accessibility & contrast

On white

12.66
#123262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#123262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123262
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123262#FFFFFF#000000##FFFFFF
##1232621.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193764
Deuteranopia (green-blind)
#062F61
Tritanopia (blue-blind)
#003D45
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #123262;
/* rgb */ color: rgb(18, 50, 98);
/* oklch */ color: oklch(32.3% 0.093 258.6);
Tailwind
colors: {
  custom: {
    50: '#5d698f',
    500: '#123262',
    950: '#000000',
  },
}
SCSS
$custom: #123262;
$custom-light: #5d698f;
$custom-dark: #000000;
JSON
{
  "hex": "#123262",
  "rgb": {
    "r": 18,
    "g": 50,
    "b": 98
  },
  "hsl": {
    "h": 216,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32277,
    "c": 0.09303,
    "h": 258.6
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#123262
secondary
#9A7236
accent
#A53CEC
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #123262

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

Preview Lab → · Contrast checker → · Palette generator →

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