#12276E#12276E

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

Color values

HEX#12276E
RGBrgb(18, 39, 110)
HSLhsl(226, 72%, 25%)
HSVhsv(226, 84%, 43%)
CMYKcmyk(83.6%, 64.5%, 0%, 56.9%)
CIE-LABlab(18.82, 20.70, -43.42)
CIE-LCHlch(18.82, 48.10, 295.49°)
OKLaboklab(30.8% -0.0084 -0.1256)
OKLCHoklch(30.8% 0.126 266.2)
XYZxyz(3.7885, 2.7050, 15.0713)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12276E #6E5912
analogous
#12556E #12276E #2B126E
triadic
#12276E #6E1227 #276E12
tetradic
#12276E #6E1255 #6E5912 #126E2B
square
#12276E #6E1255 #6E5912 #126E2B
split-complementary
#12276E #6E2B12 #556E12
monochromatic
#04091A #091439 #12276E #1B3AA3 #234CD7

Accessibility & contrast

On white

13.63
#12276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#12276E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12276E
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12276E#FFFFFF#000000##FFFFFF
##12276E1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #12276e;
/* rgb */ color: rgb(18, 39, 110);
/* oklch */ color: oklch(30.8% 0.126 266.2);
Tailwind
colors: {
  custom: {
    50: '#626098',
    500: '#12276e',
    950: '#000000',
  },
}
SCSS
$custom: #12276e;
$custom-light: #626098;
$custom-dark: #000000;
JSON
{
  "hex": "#12276e",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 226.304,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30804,
    "c": 0.12587,
    "h": 266.2
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#12276E
secondary
#A58C37
accent
#C539EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #12276E

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

Preview Lab → · Contrast checker → · Palette generator →

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