#12347F#12347F

#12347F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.133 H 263.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#12347F
RGBrgb(18, 52, 127)
HSLhsl(221, 75%, 28%)
HSVhsv(221, 86%, 50%)
CMYKcmyk(85.8%, 59.1%, 0%, 50.2%)
CIE-LABlab(24.05, 18.47, -45.74)
CIE-LCHlch(24.05, 49.33, 291.98°)
OKLaboklab(35.19% -0.0162 -0.1322)
OKLCHoklch(35.19% 0.133 263)
XYZxyz(5.3068, 4.1162, 20.5894)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12347F #7F5D12
analogous
#126A7F #12347F #26127F
triadic
#12347F #7F1234 #347F12
tetradic
#12347F #7F126A #7F5D12 #127F26
square
#12347F #7F126A #7F5D12 #127F26
split-complementary
#12347F #7F2612 #6A7F12
monochromatic
#040B1B #0A1E49 #12347F #1A4AB5 #2B63E1

Accessibility & contrast

On white

11.52
#12347F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#12347F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12347F
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12347F#FFFFFF#000000##FFFFFF
##12347F1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#004754
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #12347f;
/* rgb */ color: rgb(18, 52, 127);
/* oklch */ color: oklch(35.2% 0.133 263.0);
Tailwind
colors: {
  custom: {
    50: '#656aa5',
    500: '#12347f',
    950: '#000000',
  },
}
SCSS
$custom: #12347f;
$custom-light: #656aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#12347f",
  "rgb": {
    "r": 18,
    "g": 52,
    "b": 127
  },
  "hsl": {
    "h": 221.284,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35188,
    "c": 0.13317,
    "h": 263
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#12347F
secondary
#B58E38
accent
#B736F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12347F

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

Preview Lab → · Contrast checker → · Palette generator →

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