#12245E#12245E

#12245E is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.6% C 0.106 H 266.5°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#12245E
RGBrgb(18, 36, 94)
HSLhsl(226, 68%, 22%)
HSVhsv(226, 81%, 37%)
CMYKcmyk(80.9%, 61.7%, 0%, 63.1%)
CIE-LABlab(16.49, 16.18, -36.72)
CIE-LCHlch(16.49, 40.13, 293.77°)
OKLaboklab(28.62% -0.0066 -0.106)
OKLCHoklch(28.62% 0.106 266.5)
XYZxyz(2.9000, 2.1982, 10.8590)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12245E #5E4C12
analogous
#124A5E #12245E #26125E
triadic
#12245E #5E1224 #245E12
tetradic
#12245E #5E124A #5E4C12 #125E26
square
#12245E #5E124A #5E4C12 #125E26
split-complementary
#12245E #5E2612 #4A5E12
monochromatic
#050A1A #08102B #12245E #1C3891 #264BC5

Accessibility & contrast

On white

14.59
#12245E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12245E
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12245E#FFFFFF#000000##FFFFFF
##12245E1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12245e;
/* rgb */ color: rgb(18, 36, 94);
/* oklch */ color: oklch(28.6% 0.106 266.5);
Tailwind
colors: {
  custom: {
    50: '#5d5e8c',
    500: '#12245e',
    950: '#000000',
  },
}
SCSS
$custom: #12245e;
$custom-light: #5d5e8c;
$custom-dark: #000000;
JSON
{
  "hex": "#12245e",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 225.789,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28615,
    "c": 0.10619,
    "h": 266.5
  },
  "luminance": 0.02199
}

Semantic roles & 50–950 ramp

primary
#12245E
secondary
#967F35
accent
#C23DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12245E

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

Preview Lab → · Contrast checker → · Palette generator →

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