#12264C#12264C

#12264C is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.075 H 261.9°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#12264C
RGBrgb(18, 38, 76)
HSLhsl(219, 62%, 18%)
HSVhsv(219, 76%, 30%)
CMYKcmyk(76.3%, 50%, 0%, 70.2%)
CIE-LABlab(15.68, 6.95, -25.92)
CIE-LCHlch(15.68, 26.84, 285.02°)
OKLaboklab(27.53% -0.0106 -0.0742)
OKLCHoklch(27.53% 0.075 261.9)
XYZxyz(2.2466, 2.0364, 7.1107)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12264C #4C3812
analogous
#12434C #12264C #1B124C
triadic
#12264C #4C1226 #264C12
tetradic
#12264C #4C1243 #4C3812 #124C1B
square
#12264C #4C1243 #4C3812 #124C1B
split-complementary
#12264C #4C1B12 #434C12
monochromatic
#060C19 #060D1B #12264C #1E3F7D #2957AF

Accessibility & contrast

On white

14.92
#12264C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12264C
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12264C#FFFFFF#000000##FFFFFF
##12264C1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4D
Deuteranopia (green-blind)
#08254B
Tritanopia (blue-blind)
#002F35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12264c;
/* rgb */ color: rgb(18, 38, 76);
/* oklch */ color: oklch(27.5% 0.075 261.9);
Tailwind
colors: {
  custom: {
    50: '#585f7e',
    500: '#12264c',
    950: '#000000',
  },
}
SCSS
$custom: #12264c;
$custom-light: #585f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#12264c",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 76
  },
  "hsl": {
    "h": 219.31,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27535,
    "c": 0.07495,
    "h": 261.9
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#12264C
secondary
#856935
accent
#AD43E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12264C

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

Preview Lab → · Contrast checker → · Palette generator →

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