#12276F#12276F

#12276F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.127 H 266.2°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#12276F
RGBrgb(18, 39, 111)
HSLhsl(226, 72%, 25%)
HSVhsv(226, 84%, 44%)
CMYKcmyk(83.8%, 64.9%, 0%, 56.5%)
CIE-LABlab(18.92, 21.12, -43.91)
CIE-LCHlch(18.92, 48.73, 295.68°)
OKLaboklab(30.9% -0.0084 -0.127)
OKLCHoklch(30.9% 0.127 266.2)
XYZxyz(3.8432, 2.7269, 15.3596)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12276F #6F5A12
analogous
#12556F #12276F #2C126F
triadic
#12276F #6F1227 #276F12
tetradic
#12276F #6F1255 #6F5A12 #126F2C
square
#12276F #6F1255 #6F5A12 #126F2C
split-complementary
#12276F #6F2C12 #556F12
monochromatic
#04091A #09143A #12276F #1B3AA4 #234CD8

Accessibility & contrast

On white

13.59
#12276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#12276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12276F
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12276F#FFFFFF#000000##FFFFFF
##12276F1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #12276f;
/* rgb */ color: rgb(18, 39, 111);
/* oklch */ color: oklch(30.9% 0.127 266.2);
Tailwind
colors: {
  custom: {
    50: '#626099',
    500: '#12276f',
    950: '#000000',
  },
}
SCSS
$custom: #12276f;
$custom-light: #626099;
$custom-dark: #000000;
JSON
{
  "hex": "#12276f",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 226.452,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30903,
    "c": 0.12732,
    "h": 266.2
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#12276F
secondary
#A68D37
accent
#C639EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #12276F

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

Preview Lab → · Contrast checker → · Palette generator →

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