#12245A#12245A

#12245A is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.2% C 0.100 H 266.1°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#12245A
RGBrgb(18, 36, 90)
HSLhsl(225, 67%, 21%)
HSVhsv(225, 80%, 35%)
CMYKcmyk(80%, 60%, 0%, 64.7%)
CIE-LABlab(16.15, 14.47, -34.62)
CIE-LCHlch(16.15, 37.53, 292.68°)
OKLaboklab(28.24% -0.0068 -0.0998)
OKLCHoklch(28.24% 0.1 266.1)
XYZxyz(2.7251, 2.1282, 9.9380)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12245A #5A4812
analogous
#12485A #12245A #24125A
triadic
#12245A #5A1224 #245A12
tetradic
#12245A #5A1248 #5A4812 #125A24
square
#12245A #5A1248 #5A4812 #125A24
split-complementary
#12245A #5A2412 #485A12
monochromatic
#050A1A #081027 #12245A #1C388D #264DC0

Accessibility & contrast

On white

14.73
#12245A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12245A
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12245A#FFFFFF#000000##FFFFFF
##12245A1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12245a;
/* rgb */ color: rgb(18, 36, 90);
/* oklch */ color: oklch(28.2% 0.100 266.1);
Tailwind
colors: {
  custom: {
    50: '#5c5e89',
    500: '#12245a',
    950: '#000000',
  },
}
SCSS
$custom: #12245a;
$custom-light: #5c5e89;
$custom-dark: #000000;
JSON
{
  "hex": "#12245a",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 90
  },
  "hsl": {
    "h": 225,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28244,
    "c": 0.10005,
    "h": 266.1
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#12245A
secondary
#937B35
accent
#BF3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #12245A

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

Preview Lab → · Contrast checker → · Palette generator →

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