#12264F#12264F

#12264F is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.8% C 0.080 H 262.8°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#12264F
RGBrgb(18, 38, 79)
HSLhsl(220, 63%, 19%)
HSVhsv(220, 77%, 31%)
CMYKcmyk(77.2%, 51.9%, 0%, 69%)
CIE-LABlab(15.90, 8.24, -27.61)
CIE-LCHlch(15.90, 28.82, 286.62°)
OKLaboklab(27.77% -0.01 -0.0792)
OKLCHoklch(27.77% 0.08 262.8)
XYZxyz(2.3533, 2.0791, 7.6729)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12264F #4F3B12
analogous
#12454F #12264F #1D124F
triadic
#12264F #4F1226 #264F12
tetradic
#12264F #4F1245 #4F3B12 #124F1D
square
#12264F #4F1245 #4F3B12 #124F1D
split-complementary
#12264F #4F1D12 #454F12
monochromatic
#060C19 #070E1D #12264F #1D3E81 #2956B3

Accessibility & contrast

On white

14.83
#12264F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#12264F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12264F
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12264F#FFFFFF#000000##FFFFFF
##12264F1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102B51
Deuteranopia (green-blind)
#04254E
Tritanopia (blue-blind)
#003036
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12264f;
/* rgb */ color: rgb(18, 38, 79);
/* oklch */ color: oklch(27.8% 0.080 262.8);
Tailwind
colors: {
  custom: {
    50: '#595f81',
    500: '#12264f',
    950: '#000000',
  },
}
SCSS
$custom: #12264f;
$custom-light: #595f81;
$custom-dark: #000000;
JSON
{
  "hex": "#12264f",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 79
  },
  "hsl": {
    "h": 220.328,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27774,
    "c": 0.0798,
    "h": 262.8
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#12264F
secondary
#886D35
accent
#B042E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12264F

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

Preview Lab → · Contrast checker → · Palette generator →

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