#12245C#12245C

#12245C is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.4% C 0.103 H 266.3°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#12245C
RGBrgb(18, 36, 92)
HSLhsl(225, 67%, 22%)
HSVhsv(225, 80%, 36%)
CMYKcmyk(80.4%, 60.9%, 0%, 63.9%)
CIE-LABlab(16.32, 15.33, -35.68)
CIE-LCHlch(16.32, 38.83, 293.25°)
OKLaboklab(28.43% -0.0067 -0.1029)
OKLCHoklch(28.43% 0.103 266.3)
XYZxyz(2.8114, 2.1627, 10.3924)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12245C #5C4A12
analogous
#12495C #12245C #25125C
triadic
#12245C #5C1224 #245C12
tetradic
#12245C #5C1249 #5C4A12 #125C25
square
#12245C #5C1249 #5C4A12 #125C25
split-complementary
#12245C #5C2512 #495C12
monochromatic
#050A1A #081029 #12245C #1C388F #264CC2

Accessibility & contrast

On white

14.66
#12245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#12245C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12245C
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12245C#FFFFFF#000000##FFFFFF
##12245C1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12245c;
/* rgb */ color: rgb(18, 36, 92);
/* oklch */ color: oklch(28.4% 0.103 266.3);
Tailwind
colors: {
  custom: {
    50: '#5d5e8b',
    500: '#12245c',
    950: '#000000',
  },
}
SCSS
$custom: #12245c;
$custom-light: #5d5e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12245c",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 225.405,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28428,
    "c": 0.10313,
    "h": 266.3
  },
  "luminance": 0.02163
}

Semantic roles & 50–950 ramp

primary
#12245C
secondary
#947D35
accent
#C03EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12245C

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

Preview Lab → · Contrast checker → · Palette generator →

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