#12277E#12277E

#12277E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.148 H 266.6°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#12277E
RGBrgb(18, 39, 126)
HSLhsl(228, 75%, 28%)
HSVhsv(228, 86%, 49%)
CMYKcmyk(85.7%, 69%, 0%, 50.6%)
CIE-LABlab(20.38, 27.21, -51.11)
CIE-LCHlch(20.38, 57.91, 298.03°)
OKLaboklab(32.43% -0.0088 -0.1481)
OKLCHoklch(32.43% 0.148 266.6)
XYZxyz(4.7396, 3.0854, 20.0804)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12277E #7E6912
analogous
#125D7E #12277E #33127E
triadic
#12277E #7E1227 #277E12
tetradic
#12277E #7E125D #7E6912 #127E33
square
#12277E #7E125D #7E6912 #127E33
split-complementary
#12277E #7E3312 #5D7E12
monochromatic
#04081B #0A1648 #12277E #1A38B4 #2A4DE1

Accessibility & contrast

On white

12.99
#12277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#12277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12277E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12277E#FFFFFF#000000##FFFFFF
##12277E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #12277e;
/* rgb */ color: rgb(18, 39, 126);
/* oklch */ color: oklch(32.4% 0.148 266.6);
Tailwind
colors: {
  custom: {
    50: '#6661a4',
    500: '#12277e',
    950: '#000000',
  },
}
SCSS
$custom: #12277e;
$custom-light: #6661a4;
$custom-dark: #000000;
JSON
{
  "hex": "#12277e",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 228.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32433,
    "c": 0.14835,
    "h": 266.6
  },
  "luminance": 0.03086
}

Semantic roles & 50–950 ramp

primary
#12277E
secondary
#B49C38
accent
#CD36F2
background
#F6F5FA
surface
#EBE9F4
border
#C6C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #12277E

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

Preview Lab → · Contrast checker → · Palette generator →

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