#12274C#12274C

#12274C is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.8% C 0.074 H 260.8°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#12274C
RGBrgb(18, 39, 76)
HSLhsl(218, 62%, 18%)
HSVhsv(218, 76%, 30%)
CMYKcmyk(76.3%, 48.7%, 0%, 70.2%)
CIE-LABlab(16.01, 6.21, -25.39)
CIE-LCHlch(16.01, 26.14, 283.74°)
OKLaboklab(27.79% -0.0117 -0.0726)
OKLCHoklch(27.79% 0.074 260.8)
XYZxyz(2.2790, 2.1012, 7.1215)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12274C #4C3712
analogous
#12444C #12274C #1A124C
triadic
#12274C #4C1227 #274C12
tetradic
#12274C #4C1244 #4C3712 #124C1A
square
#12274C #4C1244 #4C3712 #124C1A
split-complementary
#12274C #4C1A12 #444C12
monochromatic
#060D19 #060E1B #12274C #1E407D #295AAF

Accessibility & contrast

On white

14.79
#12274C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#12274C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12274C
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12274C#FFFFFF#000000##FFFFFF
##12274C1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152B4D
Deuteranopia (green-blind)
#0B254B
Tritanopia (blue-blind)
#003035
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12274c;
/* rgb */ color: rgb(18, 39, 76);
/* oklch */ color: oklch(27.8% 0.074 260.8);
Tailwind
colors: {
  custom: {
    50: '#58607e',
    500: '#12274c',
    950: '#000000',
  },
}
SCSS
$custom: #12274c;
$custom-light: #58607e;
$custom-dark: #000000;
JSON
{
  "hex": "#12274c",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 76
  },
  "hsl": {
    "h": 218.276,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27791,
    "c": 0.07354,
    "h": 260.8
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#12274C
secondary
#856835
accent
#AA43E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12274C

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

Preview Lab → · Contrast checker → · Palette generator →

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