#122762#122762

#122762 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.7% C 0.108 H 265.4°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#122762
RGBrgb(18, 39, 98)
HSLhsl(224, 69%, 23%)
HSVhsv(224, 82%, 38%)
CMYKcmyk(81.6%, 60.2%, 0%, 61.6%)
CIE-LABlab(17.74, 15.65, -37.34)
CIE-LCHlch(17.74, 40.49, 292.75°)
OKLaboklab(29.66% -0.0088 -0.1077)
OKLCHoklch(29.66% 0.108 265.4)
XYZxyz(3.1788, 2.4611, 11.8604)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122762 #624D12
analogous
#124F62 #122762 #251262
triadic
#122762 #621227 #276212
tetradic
#122762 #62124F #624D12 #126225
square
#122762 #62124F #624D12 #126225
split-complementary
#122762 #622512 #4F6212
monochromatic
#050A1A #09122E #122762 #1B3C96 #2550C9

Accessibility & contrast

On white

14.07
#122762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#122762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122762
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122762#FFFFFF#000000##FFFFFF
##1227621.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#003640
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122762;
/* rgb */ color: rgb(18, 39, 98);
/* oklch */ color: oklch(29.7% 0.108 265.4);
Tailwind
colors: {
  custom: {
    50: '#5e608f',
    500: '#122762',
    950: '#000000',
  },
}
SCSS
$custom: #122762;
$custom-light: #5e608f;
$custom-dark: #000000;
JSON
{
  "hex": "#122762",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 98
  },
  "hsl": {
    "h": 224.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29661,
    "c": 0.10811,
    "h": 265.4
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

primary
#122762
secondary
#9A8036
accent
#BE3CEC
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #122762

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

Preview Lab → · Contrast checker → · Palette generator →

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