#12074E#12074E

#12074E is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.6% C 0.118 H 277.0°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#12074E
RGBrgb(18, 7, 78)
HSLhsl(249, 84%, 17%)
HSVhsv(249, 91%, 31%)
CMYKcmyk(76.9%, 91%, 0%, 69.4%)
CIE-LABlab(7.50, 29.46, -40.64)
CIE-LCHlch(7.50, 50.20, 305.94°)
OKLaboklab(21.58% 0.0145 -0.1175)
OKLCHoklch(21.58% 0.118 277)
XYZxyz(1.7001, 0.8305, 7.2769)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12074E #434E07
analogous
#07204E #12074E #36074E
triadic
#12074E #4E1207 #074E12
tetradic
#12074E #4E0720 #434E07 #074E36
square
#12074E #4E0720 #434E07 #074E36
split-complementary
#12074E #4E3607 #204E07
monochromatic
#06031C #06031C #12074E #1F0C86 #2C11BE

Accessibility & contrast

On white

18.01
#12074E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#12074E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12074E
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12074E#FFFFFF#000000##FFFFFF
##12074E1.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001950
Deuteranopia (green-blind)
#00134D
Tritanopia (blue-blind)
#001E2B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #12074e;
/* rgb */ color: rgb(18, 7, 78);
/* oklch */ color: oklch(21.6% 0.118 277.0);
Tailwind
colors: {
  custom: {
    50: '#5c4981',
    500: '#12074e',
    950: '#000000',
  },
}
SCSS
$custom: #12074e;
$custom-light: #5c4981;
$custom-dark: #000000;
JSON
{
  "hex": "#12074e",
  "rgb": {
    "r": 18,
    "g": 7,
    "b": 78
  },
  "hsl": {
    "h": 249.296,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.21582,
    "c": 0.11837,
    "h": 277
  },
  "luminance": 0.00831
}

Semantic roles & 50–950 ramp

primary
#12074E
secondary
#7C8C25
accent
#FA2EDA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #12074E

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

Preview Lab → · Contrast checker → · Palette generator →

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