#12274F#12274F

#12274F is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.0% C 0.078 H 261.9°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#12274F
RGBrgb(18, 39, 79)
HSLhsl(219, 63%, 19%)
HSVhsv(219, 77%, 31%)
CMYKcmyk(77.2%, 50.6%, 0%, 69%)
CIE-LABlab(16.23, 7.50, -27.09)
CIE-LCHlch(16.23, 28.11, 285.47°)
OKLaboklab(28.03% -0.0111 -0.0776)
OKLCHoklch(28.03% 0.078 261.9)
XYZxyz(2.3858, 2.1439, 7.6837)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12274F #4F3A12
analogous
#12464F #12274F #1C124F
triadic
#12274F #4F1227 #274F12
tetradic
#12274F #4F1246 #4F3A12 #124F1C
square
#12274F #4F1246 #4F3A12 #124F1C
split-complementary
#12274F #4F1C12 #464F12
monochromatic
#060C19 #070E1D #12274F #1D4081 #2958B3

Accessibility & contrast

On white

14.70
#12274F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#12274F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12274F
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12274F#FFFFFF#000000##FFFFFF
##12274F1.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)
#122B51
Deuteranopia (green-blind)
#06264E
Tritanopia (blue-blind)
#003037
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12274f;
/* rgb */ color: rgb(18, 39, 79);
/* oklch */ color: oklch(28.0% 0.078 261.9);
Tailwind
colors: {
  custom: {
    50: '#596080',
    500: '#12274f',
    950: '#000000',
  },
}
SCSS
$custom: #12274f;
$custom-light: #596080;
$custom-dark: #000000;
JSON
{
  "hex": "#12274f",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 79
  },
  "hsl": {
    "h": 219.344,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28026,
    "c": 0.07838,
    "h": 261.9
  },
  "luminance": 0.02144
}

Semantic roles & 50–950 ramp

primary
#12274F
secondary
#886B35
accent
#AD42E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12274F

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

Preview Lab → · Contrast checker → · Palette generator →

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