#12306C#12306C

#12306C is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.6% C 0.111 H 262.2°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#12306C
RGBrgb(18, 48, 108)
HSLhsl(220, 71%, 25%)
HSVhsv(220, 83%, 42%)
CMYKcmyk(83.3%, 55.6%, 0%, 57.6%)
CIE-LABlab(21.30, 13.32, -38.09)
CIE-LCHlch(21.30, 40.35, 289.27°)
OKLaboklab(32.61% -0.015 -0.1098)
OKLCHoklch(32.61% 0.111 262.2)
XYZxyz(4.0122, 3.3247, 14.6147)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12306C #6C4E12
analogous
#125D6C #12306C #21126C
triadic
#12306C #6C1230 #306C12
tetradic
#12306C #6C125D #6C4E12 #126C21
square
#12306C #6C125D #6C4E12 #126C21
split-complementary
#12306C #6C2112 #5D6C12
monochromatic
#040C1A #091938 #12306C #1B47A0 #235FD5

Accessibility & contrast

On white

12.61
#12306C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#12306C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12306C
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12306C#FFFFFF#000000##FFFFFF
##12306C1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04376E
Deuteranopia (green-blind)
#002F6B
Tritanopia (blue-blind)
#003F49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #12306c;
/* rgb */ color: rgb(18, 48, 108);
/* oklch */ color: oklch(32.6% 0.111 262.2);
Tailwind
colors: {
  custom: {
    50: '#606797',
    500: '#12306c',
    950: '#000000',
  },
}
SCSS
$custom: #12306c;
$custom-light: #606797;
$custom-dark: #000000;
JSON
{
  "hex": "#12306c",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 108
  },
  "hsl": {
    "h": 220,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32614,
    "c": 0.11081,
    "h": 262.2
  },
  "luminance": 0.03325
}

Semantic roles & 50–950 ramp

primary
#12306C
secondary
#A37F36
accent
#B23AEE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#05060D
muted
#7A7A7E

Preview Lab

Preview with #12306C

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

Preview Lab → · Contrast checker → · Palette generator →

#12306C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva