#12347D#12347D

#12347D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.0% C 0.130 H 262.8°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#12347D
RGBrgb(18, 52, 125)
HSLhsl(221, 75%, 28%)
HSVhsv(221, 86%, 49%)
CMYKcmyk(85.6%, 58.4%, 0%, 51%)
CIE-LABlab(23.88, 17.63, -44.75)
CIE-LCHlch(23.88, 48.10, 291.50°)
OKLaboklab(35.01% -0.0164 -0.1293)
OKLCHoklch(35.01% 0.13 262.8)
XYZxyz(5.1778, 4.0646, 19.9097)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12347D #7D5B12
analogous
#12697D #12347D #26127D
triadic
#12347D #7D1234 #347D12
tetradic
#12347D #7D1269 #7D5B12 #127D26
square
#12347D #7D1269 #7D5B12 #127D26
split-complementary
#12347D #7D2612 #697D12
monochromatic
#040B1B #0A1E48 #12347D #1A4AB2 #2963E0

Accessibility & contrast

On white

11.58
#12347D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#12347D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12347D
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12347D#FFFFFF#000000##FFFFFF
##12347D1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #12347d;
/* rgb */ color: rgb(18, 52, 125);
/* oklch */ color: oklch(35.0% 0.130 262.8);
Tailwind
colors: {
  custom: {
    50: '#656aa3',
    500: '#12347d',
    950: '#000000',
  },
}
SCSS
$custom: #12347d;
$custom-light: #656aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#12347d",
  "rgb": {
    "r": 18,
    "g": 52,
    "b": 125
  },
  "hsl": {
    "h": 220.935,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35008,
    "c": 0.13031,
    "h": 262.8
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#12347D
secondary
#B38C38
accent
#B636F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12347D

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

Preview Lab → · Contrast checker → · Palette generator →

#12347D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva