#12266A#12266A

#12266A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.2% C 0.121 H 266.3°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#12266A
RGBrgb(18, 38, 106)
HSLhsl(226, 71%, 24%)
HSVhsv(226, 83%, 42%)
CMYKcmyk(83%, 64.2%, 0%, 58.4%)
CIE-LABlab(18.17, 19.76, -41.89)
CIE-LCHlch(18.17, 46.32, 295.26°)
OKLaboklab(30.2% -0.0077 -0.1211)
OKLCHoklch(30.2% 0.121 266.3)
XYZxyz(3.5432, 2.5550, 13.9393)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12266A #6A5612
analogous
#12526A #12266A #2A126A
triadic
#12266A #6A1226 #266A12
tetradic
#12266A #6A1252 #6A5612 #126A2A
square
#12266A #6A1252 #6A5612 #126A2A
split-complementary
#12266A #6A2A12 #526A12
monochromatic
#04091A #091336 #12266A #1B399E #244CD3

Accessibility & contrast

On white

13.90
#12266A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#12266A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12266A
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12266A#FFFFFF#000000##FFFFFF
##12266A1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #12266a;
/* rgb */ color: rgb(18, 38, 106);
/* oklch */ color: oklch(30.2% 0.121 266.3);
Tailwind
colors: {
  custom: {
    50: '#606095',
    500: '#12266a',
    950: '#000000',
  },
}
SCSS
$custom: #12266a;
$custom-light: #606095;
$custom-dark: #000000;
JSON
{
  "hex": "#12266a",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 106
  },
  "hsl": {
    "h": 226.364,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30201,
    "c": 0.12138,
    "h": 266.3
  },
  "luminance": 0.02555
}

Semantic roles & 50–950 ramp

primary
#12266A
secondary
#A28936
accent
#C53AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #12266A

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

Preview Lab → · Contrast checker → · Palette generator →

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