#12245D#12245D

#12245D is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.5% C 0.105 H 266.4°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#12245D
RGBrgb(18, 36, 93)
HSLhsl(226, 68%, 22%)
HSVhsv(226, 81%, 36%)
CMYKcmyk(80.6%, 61.3%, 0%, 63.5%)
CIE-LABlab(16.41, 15.75, -36.20)
CIE-LCHlch(16.41, 39.48, 293.51°)
OKLaboklab(28.52% -0.0066 -0.1044)
OKLCHoklch(28.52% 0.105 266.4)
XYZxyz(2.8554, 2.1804, 10.6242)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12245D #5D4B12
analogous
#124A5D #12245D #26125D
triadic
#12245D #5D1224 #245D12
tetradic
#12245D #5D124A #5D4B12 #125D26
square
#12245D #5D124A #5D4B12 #125D26
split-complementary
#12245D #5D2612 #4A5D12
monochromatic
#050A1A #08102A #12245D #1C3890 #264CC4

Accessibility & contrast

On white

14.62
#12245D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#12245D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12245D
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12245D#FFFFFF#000000##FFFFFF
##12245D1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #12245d;
/* rgb */ color: rgb(18, 36, 93);
/* oklch */ color: oklch(28.5% 0.105 266.4);
Tailwind
colors: {
  custom: {
    50: '#5d5e8b',
    500: '#12245d',
    950: '#000000',
  },
}
SCSS
$custom: #12245d;
$custom-light: #5d5e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12245d",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 93
  },
  "hsl": {
    "h": 225.6,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28522,
    "c": 0.10466,
    "h": 266.4
  },
  "luminance": 0.02181
}

Semantic roles & 50–950 ramp

primary
#12245D
secondary
#957E35
accent
#C13DEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12245D

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

Preview Lab → · Contrast checker → · Palette generator →

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