#12264E#12264E

#12264E is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.7% C 0.078 H 262.5°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#12264E
RGBrgb(18, 38, 78)
HSLhsl(220, 63%, 19%)
HSVhsv(220, 77%, 31%)
CMYKcmyk(76.9%, 51.3%, 0%, 69.4%)
CIE-LABlab(15.82, 7.81, -27.05)
CIE-LCHlch(15.82, 28.16, 286.11°)
OKLaboklab(27.69% -0.0102 -0.0775)
OKLCHoklch(27.69% 0.078 262.5)
XYZxyz(2.3172, 2.0646, 7.4826)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12264E #4E3A12
analogous
#12444E #12264E #1C124E
triadic
#12264E #4E1226 #264E12
tetradic
#12264E #4E1244 #4E3A12 #124E1C
square
#12264E #4E1244 #4E3A12 #124E1C
split-complementary
#12264E #4E1C12 #444E12
monochromatic
#060C19 #070E1C #12264E #1D3E80 #2956B1

Accessibility & contrast

On white

14.86
#12264E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12264E
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12264E#FFFFFF#000000##FFFFFF
##12264E1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A4F
Deuteranopia (green-blind)
#05254D
Tritanopia (blue-blind)
#002F36
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12264e;
/* rgb */ color: rgb(18, 38, 78);
/* oklch */ color: oklch(27.7% 0.078 262.5);
Tailwind
colors: {
  custom: {
    50: '#595f80',
    500: '#12264e',
    950: '#000000',
  },
}
SCSS
$custom: #12264e;
$custom-light: #595f80;
$custom-dark: #000000;
JSON
{
  "hex": "#12264e",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 78
  },
  "hsl": {
    "h": 220,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27694,
    "c": 0.07818,
    "h": 262.5
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#12264E
secondary
#876C35
accent
#AF42E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12264E

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

Preview Lab → · Contrast checker → · Palette generator →

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