#12274E#12274E

#12274E is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.9% C 0.077 H 261.5°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#12274E
RGBrgb(18, 39, 78)
HSLhsl(219, 63%, 19%)
HSVhsv(219, 77%, 31%)
CMYKcmyk(76.9%, 50%, 0%, 69.4%)
CIE-LABlab(16.15, 7.06, -26.52)
CIE-LCHlch(16.15, 27.45, 284.91°)
OKLaboklab(27.95% -0.0113 -0.0759)
OKLCHoklch(27.95% 0.077 261.5)
XYZxyz(2.3496, 2.1295, 7.4934)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12274E #4E3912
analogous
#12454E #12274E #1B124E
triadic
#12274E #4E1227 #274E12
tetradic
#12274E #4E1245 #4E3912 #124E1B
square
#12274E #4E1245 #4E3912 #124E1B
split-complementary
#12274E #4E1B12 #454E12
monochromatic
#060C19 #070E1C #12274E #1D4080 #2959B1

Accessibility & contrast

On white

14.73
#12274E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12274E
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12274E#FFFFFF#000000##FFFFFF
##12274E1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132B4F
Deuteranopia (green-blind)
#08264D
Tritanopia (blue-blind)
#003036
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12274e;
/* rgb */ color: rgb(18, 39, 78);
/* oklch */ color: oklch(27.9% 0.077 261.5);
Tailwind
colors: {
  custom: {
    50: '#596080',
    500: '#12274e',
    950: '#000000',
  },
}
SCSS
$custom: #12274e;
$custom-light: #596080;
$custom-dark: #000000;
JSON
{
  "hex": "#12274e",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 78
  },
  "hsl": {
    "h": 219,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27947,
    "c": 0.07677,
    "h": 261.5
  },
  "luminance": 0.0213
}

Semantic roles & 50–950 ramp

primary
#12274E
secondary
#876A35
accent
#AC42E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12274E

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

Preview Lab → · Contrast checker → · Palette generator →

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