#12264D#12264D

#12264D is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.6% C 0.077 H 262.2°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#12264D
RGBrgb(18, 38, 77)
HSLhsl(220, 62%, 19%)
HSVhsv(220, 77%, 30%)
CMYKcmyk(76.6%, 50.6%, 0%, 69.8%)
CIE-LABlab(15.75, 7.38, -26.49)
CIE-LCHlch(15.75, 27.50, 285.57°)
OKLaboklab(27.61% -0.0104 -0.0758)
OKLCHoklch(27.61% 0.077 262.2)
XYZxyz(2.2816, 2.0504, 7.2953)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12264D #4D3912
analogous
#12434D #12264D #1B124D
triadic
#12264D #4D1226 #264D12
tetradic
#12264D #4D1243 #4D3912 #124D1B
square
#12264D #4D1243 #4D3912 #124D1B
split-complementary
#12264D #4D1B12 #434D12
monochromatic
#060C19 #060E1B #12264D #1E3E7F #2957B0

Accessibility & contrast

On white

14.89
#12264D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#12264D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12264D
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12264D#FFFFFF#000000##FFFFFF
##12264D1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122A4E
Deuteranopia (green-blind)
#07254C
Tritanopia (blue-blind)
#002F35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12264d;
/* rgb */ color: rgb(18, 38, 77);
/* oklch */ color: oklch(27.6% 0.077 262.2);
Tailwind
colors: {
  custom: {
    50: '#585f7f',
    500: '#12264d',
    950: '#000000',
  },
}
SCSS
$custom: #12264d;
$custom-light: #585f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#12264d",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 77
  },
  "hsl": {
    "h": 219.661,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27614,
    "c": 0.07656,
    "h": 262.2
  },
  "luminance": 0.02051
}

Semantic roles & 50–950 ramp

primary
#12264D
secondary
#866A35
accent
#AE43E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12264D

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

Preview Lab → · Contrast checker → · Palette generator →

#12264D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva