#122340#122340

#122340 is a dark, muted blue. Relative luminance 0.017; OKLCH L 25.8% C 0.059 H 260.4°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#122340
RGBrgb(18, 35, 64)
HSLhsl(218, 56%, 16%)
HSVhsv(218, 72%, 25%)
CMYKcmyk(71.9%, 45.3%, 0%, 74.9%)
CIE-LABlab(13.83, 4.09, -20.59)
CIE-LCHlch(13.83, 20.99, 281.23°)
OKLaboklab(25.84% -0.0099 -0.0586)
OKLCHoklch(25.84% 0.059 260.4)
XYZxyz(1.7756, 1.7007, 5.0842)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122340 #402F12
analogous
#123A40 #122340 #181240
triadic
#122340 #401223 #234012
tetradic
#122340 #40123A #402F12 #124018
square
#122340 #40123A #402F12 #124018
split-complementary
#122340 #401812 #3A4012
monochromatic
#070D18 #070D18 #122340 #1F3D70 #2D57A0

Accessibility & contrast

On white

15.67
#122340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#122340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122340
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122340#FFFFFF#000000##FFFFFF
##1223401.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162641
Deuteranopia (green-blind)
#10213F
Tritanopia (blue-blind)
#002A2E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #122340;
/* rgb */ color: rgb(18, 35, 64);
/* oklch */ color: oklch(25.8% 0.059 260.4);
Tailwind
colors: {
  custom: {
    50: '#555d75',
    500: '#122340',
    950: '#000000',
  },
}
SCSS
$custom: #122340;
$custom-light: #555d75;
$custom-dark: #000000;
JSON
{
  "hex": "#122340",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 64
  },
  "hsl": {
    "h": 217.826,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2584,
    "c": 0.0594,
    "h": 260.4
  },
  "luminance": 0.01701
}

Semantic roles & 50–950 ramp

primary
#122340
secondary
#796035
accent
#A848DF
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #122340

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

Preview Lab → · Contrast checker → · Palette generator →

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