#12285A#12285A

#12285A is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.094 H 263.7°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#12285A
RGBrgb(18, 40, 90)
HSLhsl(222, 67%, 21%)
HSVhsv(222, 80%, 35%)
CMYKcmyk(80%, 55.6%, 0%, 64.7%)
CIE-LABlab(17.39, 11.49, -32.61)
CIE-LCHlch(17.39, 34.58, 289.40°)
OKLaboklab(29.18% -0.0104 -0.0938)
OKLCHoklch(29.18% 0.094 263.7)
XYZxyz(2.8531, 2.3841, 9.9807)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12285A #5A4412
analogous
#124C5A #12285A #20125A
triadic
#12285A #5A1228 #285A12
tetradic
#12285A #5A124C #5A4412 #125A20
square
#12285A #5A124C #5A4412 #125A20
split-complementary
#12285A #5A2012 #4C5A12
monochromatic
#050B1A #081127 #12285A #1C3F8D #2655C0

Accessibility & contrast

On white

14.22
#12285A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#12285A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12285A
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12285A#FFFFFF#000000##FFFFFF
##12285A1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082E5C
Deuteranopia (green-blind)
#002859
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #12285a;
/* rgb */ color: rgb(18, 40, 90);
/* oklch */ color: oklch(29.2% 0.094 263.7);
Tailwind
colors: {
  custom: {
    50: '#5c6189',
    500: '#12285a',
    950: '#000000',
  },
}
SCSS
$custom: #12285a;
$custom-light: #5c6189;
$custom-dark: #000000;
JSON
{
  "hex": "#12285a",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 90
  },
  "hsl": {
    "h": 221.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29182,
    "c": 0.0944,
    "h": 263.7
  },
  "luminance": 0.02384
}

Semantic roles & 50–950 ramp

primary
#12285A
secondary
#937635
accent
#B53EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04050B
muted
#79797C

Preview Lab

Preview with #12285A

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

Preview Lab → · Contrast checker → · Palette generator →

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