#12274A#12274A

#12274A is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.6% C 0.070 H 260.0°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#12274A
RGBrgb(18, 39, 74)
HSLhsl(218, 61%, 18%)
HSVhsv(218, 76%, 29%)
CMYKcmyk(75.7%, 47.3%, 0%, 71%)
CIE-LABlab(15.87, 5.35, -24.25)
CIE-LCHlch(15.87, 24.83, 282.45°)
OKLaboklab(27.64% -0.0122 -0.0692)
OKLCHoklch(27.64% 0.07 260)
XYZxyz(2.2106, 2.0738, 6.7610)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12274A #4A3512
analogous
#12434A #12274A #19124A
triadic
#12274A #4A1227 #274A12
tetradic
#12274A #4A1243 #4A3512 #124A19
square
#12274A #4A1243 #4A3512 #124A19
split-complementary
#12274A #4A1912 #434A12
monochromatic
#060D19 #060D19 #12274A #1E417B #2A5BAC

Accessibility & contrast

On white

14.84
#12274A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#12274A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12274A
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12274A#FFFFFF#000000##FFFFFF
##12274A1.0014.841.4114.84
#FFFFFF14.841.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162A4B
Deuteranopia (green-blind)
#0D2549
Tritanopia (blue-blind)
#002F34
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12274a;
/* rgb */ color: rgb(18, 39, 74);
/* oklch */ color: oklch(27.6% 0.070 260.0);
Tailwind
colors: {
  custom: {
    50: '#58607d',
    500: '#12274a',
    950: '#000000',
  },
}
SCSS
$custom: #12274a;
$custom-light: #58607d;
$custom-dark: #000000;
JSON
{
  "hex": "#12274a",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 74
  },
  "hsl": {
    "h": 217.5,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27638,
    "c": 0.0703,
    "h": 260
  },
  "luminance": 0.02074
}

Semantic roles & 50–950 ramp

primary
#12274A
secondary
#836635
accent
#A844E4
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040409
muted
#79797B

Preview Lab

Preview with #12274A

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

Preview Lab → · Contrast checker → · Palette generator →

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