#12285C#12285C

#12285C is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.098 H 264.0°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#12285C
RGBrgb(18, 40, 92)
HSLhsl(222, 67%, 22%)
HSVhsv(222, 80%, 36%)
CMYKcmyk(80.4%, 56.5%, 0%, 63.9%)
CIE-LABlab(17.55, 12.35, -33.69)
CIE-LCHlch(17.55, 35.88, 290.13°)
OKLaboklab(29.35% -0.0101 -0.097)
OKLCHoklch(29.35% 0.098 264)
XYZxyz(2.9393, 2.4186, 10.4351)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12285C #5C4612
analogous
#124D5C #12285C #21125C
triadic
#12285C #5C1228 #285C12
tetradic
#12285C #5C124D #5C4612 #125C21
square
#12285C #5C124D #5C4612 #125C21
split-complementary
#12285C #5C2112 #4D5C12
monochromatic
#050B1A #081229 #12285C #1C3E8F #2655C2

Accessibility & contrast

On white

14.15
#12285C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12285C
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12285C#FFFFFF#000000##FFFFFF
##12285C1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042F5E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#00353D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #12285c;
/* rgb */ color: rgb(18, 40, 92);
/* oklch */ color: oklch(29.4% 0.098 264.0);
Tailwind
colors: {
  custom: {
    50: '#5c618b',
    500: '#12285c',
    950: '#000000',
  },
}
SCSS
$custom: #12285c;
$custom-light: #5c618b;
$custom-dark: #000000;
JSON
{
  "hex": "#12285c",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 92
  },
  "hsl": {
    "h": 222.162,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29355,
    "c": 0.09751,
    "h": 264
  },
  "luminance": 0.02419
}

Semantic roles & 50–950 ramp

primary
#12285C
secondary
#947835
accent
#B73EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #12285C

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

Preview Lab → · Contrast checker → · Palette generator →

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