#12245F#12245F

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

Color values

HEX#12245F
RGBrgb(18, 36, 95)
HSLhsl(226, 68%, 22%)
HSVhsv(226, 81%, 37%)
CMYKcmyk(81.1%, 62.1%, 0%, 62.7%)
CIE-LABlab(16.58, 16.60, -37.24)
CIE-LCHlch(16.58, 40.78, 294.03°)
OKLaboklab(28.71% -0.0065 -0.1075)
OKLCHoklch(28.71% 0.108 266.5)
XYZxyz(2.9452, 2.2162, 11.0968)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12245F #5F4D12
analogous
#124B5F #12245F #27125F
triadic
#12245F #5F1224 #245F12
tetradic
#12245F #5F124B #5F4D12 #125F27
square
#12245F #5F124B #5F4D12 #125F27
split-complementary
#12245F #5F2712 #4B5F12
monochromatic
#050A1A #08112C #12245F #1C3792 #254BC6

Accessibility & contrast

On white

14.55
#12245F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12245F
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12245F#FFFFFF#000000##FFFFFF
##12245F1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #12245f;
/* rgb */ color: rgb(18, 36, 95);
/* oklch */ color: oklch(28.7% 0.108 266.5);
Tailwind
colors: {
  custom: {
    50: '#5d5e8d',
    500: '#12245f',
    950: '#000000',
  },
}
SCSS
$custom: #12245f;
$custom-light: #5d5e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#12245f",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 95
  },
  "hsl": {
    "h": 225.974,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28709,
    "c": 0.10771,
    "h": 266.5
  },
  "luminance": 0.02217
}

Semantic roles & 50–950 ramp

primary
#12245F
secondary
#978036
accent
#C23DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12245F

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

Preview Lab → · Contrast checker → · Palette generator →

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