#12285B#12285B

#12285B is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.096 H 263.9°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#12285B
RGBrgb(18, 40, 91)
HSLhsl(222, 67%, 21%)
HSVhsv(222, 80%, 36%)
CMYKcmyk(80.2%, 56%, 0%, 64.3%)
CIE-LABlab(17.47, 11.92, -33.15)
CIE-LCHlch(17.47, 35.23, 289.77°)
OKLaboklab(29.27% -0.0102 -0.0954)
OKLCHoklch(29.27% 0.096 263.9)
XYZxyz(2.8959, 2.4012, 10.2064)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12285B #5B4512
analogous
#124D5B #12285B #21125B
triadic
#12285B #5B1228 #285B12
tetradic
#12285B #5B124D #5B4512 #125B21
square
#12285B #5B124D #5B4512 #125B21
split-complementary
#12285B #5B2112 #4D5B12
monochromatic
#050B1A #081228 #12285B #1C3E8E #2655C1

Accessibility & contrast

On white

14.19
#12285B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12285B
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12285B#FFFFFF#000000##FFFFFF
##12285B1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062E5D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#00343D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #12285b;
/* rgb */ color: rgb(18, 40, 91);
/* oklch */ color: oklch(29.3% 0.096 263.9);
Tailwind
colors: {
  custom: {
    50: '#5c618a',
    500: '#12285b',
    950: '#000000',
  },
}
SCSS
$custom: #12285b;
$custom-light: #5c618a;
$custom-dark: #000000;
JSON
{
  "hex": "#12285b",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 91
  },
  "hsl": {
    "h": 221.918,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29268,
    "c": 0.09596,
    "h": 263.9
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

primary
#12285B
secondary
#937735
accent
#B63EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #12285B

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

Preview Lab → · Contrast checker → · Palette generator →

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