#12306A#12306A

#12306A is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.4% C 0.108 H 261.8°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#12306A
RGBrgb(18, 48, 106)
HSLhsl(220, 71%, 24%)
HSVhsv(220, 83%, 42%)
CMYKcmyk(83%, 54.7%, 0%, 58.4%)
CIE-LABlab(21.14, 12.46, -37.05)
CIE-LCHlch(21.14, 39.09, 288.59°)
OKLaboklab(32.44% -0.0153 -0.1067)
OKLCHoklch(32.44% 0.108 261.8)
XYZxyz(3.9070, 3.2827, 14.0606)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12306A #6A4C12
analogous
#125C6A #12306A #20126A
triadic
#12306A #6A1230 #306A12
tetradic
#12306A #6A125C #6A4C12 #126A20
square
#12306A #6A125C #6A4C12 #126A20
split-complementary
#12306A #6A2012 #5C6A12
monochromatic
#040C1A #091836 #12306A #1B489E #245FD3

Accessibility & contrast

On white

12.68
#12306A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#12306A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12306A
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12306A#FFFFFF#000000##FFFFFF
##12306A1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08376C
Deuteranopia (green-blind)
#002F69
Tritanopia (blue-blind)
#003E48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #12306a;
/* rgb */ color: rgb(18, 48, 106);
/* oklch */ color: oklch(32.4% 0.108 261.8);
Tailwind
colors: {
  custom: {
    50: '#606795',
    500: '#12306a',
    950: '#000000',
  },
}
SCSS
$custom: #12306a;
$custom-light: #606795;
$custom-dark: #000000;
JSON
{
  "hex": "#12306a",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 106
  },
  "hsl": {
    "h": 219.545,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.32443,
    "c": 0.10781,
    "h": 261.8
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#12306A
secondary
#A27D36
accent
#B03AEE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#05060D
muted
#7A7A7E

Preview Lab

Preview with #12306A

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

Preview Lab → · Contrast checker → · Palette generator →

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