#12284F#12284F

#12284F is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.3% C 0.077 H 260.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#12284F
RGBrgb(18, 40, 79)
HSLhsl(218, 63%, 19%)
HSVhsv(218, 77%, 31%)
CMYKcmyk(77.2%, 49.4%, 0%, 69%)
CIE-LABlab(16.55, 6.75, -26.56)
CIE-LCHlch(16.55, 27.40, 284.26°)
OKLaboklab(28.28% -0.0122 -0.076)
OKLCHoklch(28.28% 0.077 260.9)
XYZxyz(2.4190, 2.2104, 7.6948)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12284F #4F3912
analogous
#12474F #12284F #1B124F
triadic
#12284F #4F1228 #284F12
tetradic
#12284F #4F1247 #4F3912 #124F1B
square
#12284F #4F1247 #4F3912 #124F1B
split-complementary
#12284F #4F1B12 #474F12
monochromatic
#060D19 #070F1D #12284F #1D4181 #295AB3

Accessibility & contrast

On white

14.56
#12284F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#12284F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12284F
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12284F#FFFFFF#000000##FFFFFF
##12284F1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142C50
Deuteranopia (green-blind)
#09264E
Tritanopia (blue-blind)
#003137
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #12284f;
/* rgb */ color: rgb(18, 40, 79);
/* oklch */ color: oklch(28.3% 0.077 260.9);
Tailwind
colors: {
  custom: {
    50: '#596180',
    500: '#12284f',
    950: '#000000',
  },
}
SCSS
$custom: #12284f;
$custom-light: #596180;
$custom-dark: #000000;
JSON
{
  "hex": "#12284f",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 79
  },
  "hsl": {
    "h": 218.361,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2828,
    "c": 0.07698,
    "h": 260.9
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#12284F
secondary
#886A35
accent
#AB42E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #12284F

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

Preview Lab → · Contrast checker → · Palette generator →

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