#12284A#12284A

#12284A is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.9% C 0.069 H 258.9°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#12284A
RGBrgb(18, 40, 74)
HSLhsl(216, 61%, 18%)
HSVhsv(216, 76%, 29%)
CMYKcmyk(75.7%, 45.9%, 0%, 71%)
CIE-LABlab(16.21, 4.61, -23.71)
CIE-LCHlch(16.21, 24.15, 281.00°)
OKLaboklab(27.9% -0.0133 -0.0676)
OKLCHoklch(27.9% 0.069 258.9)
XYZxyz(2.2438, 2.1404, 6.7721)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12284A #4A3412
analogous
#12444A #12284A #18124A
triadic
#12284A #4A1228 #284A12
tetradic
#12284A #4A1244 #4A3412 #124A18
square
#12284A #4A1244 #4A3412 #124A18
split-complementary
#12284A #4A1812 #444A12
monochromatic
#060D19 #060D19 #12284A #1E437B #2A5DAC

Accessibility & contrast

On white

14.70
#12284A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12284A
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12284A#FFFFFF#000000##FFFFFF
##12284A1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182B4B
Deuteranopia (green-blind)
#0F2649
Tritanopia (blue-blind)
#003035
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12284a;
/* rgb */ color: rgb(18, 40, 74);
/* oklch */ color: oklch(27.9% 0.069 258.9);
Tailwind
colors: {
  custom: {
    50: '#58617d',
    500: '#12284a',
    950: '#000000',
  },
}
SCSS
$custom: #12284a;
$custom-light: #58617d;
$custom-dark: #000000;
JSON
{
  "hex": "#12284a",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 74
  },
  "hsl": {
    "h": 216.429,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27899,
    "c": 0.06895,
    "h": 258.9
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#12284A
secondary
#836435
accent
#A544E4
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040509
muted
#79797B

Preview Lab

Preview with #12284A

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

Preview Lab → · Contrast checker → · Palette generator →

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