#12276A#12276A

#12276A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.4% C 0.120 H 266.0°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#12276A
RGBrgb(18, 39, 106)
HSLhsl(226, 71%, 24%)
HSVhsv(226, 83%, 42%)
CMYKcmyk(83%, 63.2%, 0%, 58.4%)
CIE-LABlab(18.45, 19.04, -41.43)
CIE-LCHlch(18.45, 45.59, 294.68°)
OKLaboklab(30.42% -0.0084 -0.1197)
OKLCHoklch(30.42% 0.12 266)
XYZxyz(3.5756, 2.6198, 13.9501)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12276A #6A5512
analogous
#12536A #12276A #29126A
triadic
#12276A #6A1227 #276A12
tetradic
#12276A #6A1253 #6A5512 #126A29
square
#12276A #6A1253 #6A5512 #126A29
split-complementary
#12276A #6A2912 #536A12
monochromatic
#040A1A #091436 #12276A #1B3A9E #244DD3

Accessibility & contrast

On white

13.78
#12276A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#12276A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12276A
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12276A#FFFFFF#000000##FFFFFF
##12276A1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002969
Tritanopia (blue-blind)
#003844
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #12276a;
/* rgb */ color: rgb(18, 39, 106);
/* oklch */ color: oklch(30.4% 0.120 266.0);
Tailwind
colors: {
  custom: {
    50: '#606095',
    500: '#12276a',
    950: '#000000',
  },
}
SCSS
$custom: #12276a;
$custom-light: #606095;
$custom-dark: #000000;
JSON
{
  "hex": "#12276a",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 225.682,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30415,
    "c": 0.12004,
    "h": 266
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#12276A
secondary
#A28836
accent
#C33AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #12276A

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

Preview Lab → · Contrast checker → · Palette generator →

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