#12266F#12266F

#12266F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.7% C 0.129 H 266.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#12266F
RGBrgb(18, 38, 111)
HSLhsl(227, 72%, 25%)
HSVhsv(227, 84%, 44%)
CMYKcmyk(83.8%, 65.8%, 0%, 56.5%)
CIE-LABlab(18.64, 21.84, -44.37)
CIE-LCHlch(18.64, 49.45, 296.20°)
OKLaboklab(30.7% -0.0077 -0.1284)
OKLCHoklch(30.7% 0.129 266.6)
XYZxyz(3.8108, 2.6621, 15.3488)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12266F #6F5B12
analogous
#12546F #12266F #2D126F
triadic
#12266F #6F1226 #266F12
tetradic
#12266F #6F1254 #6F5B12 #126F2D
square
#12266F #6F1254 #6F5B12 #126F2D
split-complementary
#12266F #6F2D12 #546F12
monochromatic
#04091A #09143A #12266F #1B38A4 #234AD8

Accessibility & contrast

On white

13.70
#12266F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12266F
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12266F#FFFFFF#000000##FFFFFF
##12266F1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12266f;
/* rgb */ color: rgb(18, 38, 111);
/* oklch */ color: oklch(30.7% 0.129 266.6);
Tailwind
colors: {
  custom: {
    50: '#626099',
    500: '#12266f',
    950: '#000000',
  },
}
SCSS
$custom: #12266f;
$custom-light: #626099;
$custom-dark: #000000;
JSON
{
  "hex": "#12266f",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 111
  },
  "hsl": {
    "h": 227.097,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30696,
    "c": 0.12862,
    "h": 266.6
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#12266F
secondary
#A68E37
accent
#C839EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #12266F

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

Preview Lab → · Contrast checker → · Palette generator →

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