#12266E#12266E

#12266E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.127 H 266.5°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#12266E
RGBrgb(18, 38, 110)
HSLhsl(227, 72%, 25%)
HSVhsv(227, 84%, 43%)
CMYKcmyk(83.6%, 65.5%, 0%, 56.9%)
CIE-LABlab(18.54, 21.42, -43.88)
CIE-LCHlch(18.54, 48.83, 296.02°)
OKLaboklab(30.6% -0.0077 -0.1269)
OKLCHoklch(30.6% 0.127 266.5)
XYZxyz(3.7561, 2.6402, 15.0605)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12266E #6E5A12
analogous
#12546E #12266E #2C126E
triadic
#12266E #6E1226 #266E12
tetradic
#12266E #6E1254 #6E5A12 #126E2C
square
#12266E #6E1254 #6E5A12 #126E2C
split-complementary
#12266E #6E2C12 #546E12
monochromatic
#04091A #091439 #12266E #1B38A3 #234AD7

Accessibility & contrast

On white

13.74
#12266E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#12266E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12266E
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12266E#FFFFFF#000000##FFFFFF
##12266E1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #12266e;
/* rgb */ color: rgb(18, 38, 110);
/* oklch */ color: oklch(30.6% 0.127 266.5);
Tailwind
colors: {
  custom: {
    50: '#626098',
    500: '#12266e',
    950: '#000000',
  },
}
SCSS
$custom: #12266e;
$custom-light: #626098;
$custom-dark: #000000;
JSON
{
  "hex": "#12266e",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 110
  },
  "hsl": {
    "h": 226.957,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30596,
    "c": 0.12719,
    "h": 266.5
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#12266E
secondary
#A58D37
accent
#C739EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #12266E

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

Preview Lab → · Contrast checker → · Palette generator →

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