#12348D#12348D

#12348D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.153 H 264.1°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#12348D
RGBrgb(18, 52, 141)
HSLhsl(223, 77%, 31%)
HSVhsv(223, 87%, 55%)
CMYKcmyk(87.2%, 63.1%, 0%, 44.7%)
CIE-LABlab(25.28, 24.24, -52.48)
CIE-LCHlch(25.28, 57.81, 294.79°)
OKLaboklab(36.49% -0.0156 -0.1519)
OKLCHoklch(36.49% 0.153 264.1)
XYZxyz(6.2835, 4.5069, 25.7329)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12348D #8D6B12
analogous
#12718D #12348D #2E128D
triadic
#12348D #8D1234 #348D12
tetradic
#12348D #8D1271 #8D6B12 #128D2E
square
#12348D #8D1271 #8D6B12 #128D2E
split-complementary
#12348D #8D2E12 #718D12
monochromatic
#040C20 #0B2057 #12348D #1948C3 #3465E5

Accessibility & contrast

On white

11.04
#12348D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#12348D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12348D
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12348D#FFFFFF#000000##FFFFFF
##12348D1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #12348d;
/* rgb */ color: rgb(18, 52, 141);
/* oklch */ color: oklch(36.5% 0.153 264.1);
Tailwind
colors: {
  custom: {
    50: '#696baf',
    500: '#12348d',
    950: '#000000',
  },
}
SCSS
$custom: #12348d;
$custom-light: #696baf;
$custom-dark: #000000;
JSON
{
  "hex": "#12348d",
  "rgb": {
    "r": 18,
    "g": 52,
    "b": 141
  },
  "hsl": {
    "h": 223.415,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36489,
    "c": 0.15275,
    "h": 264.1
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#12348D
secondary
#C19C39
accent
#BF34F4
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #12348D

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

Preview Lab → · Contrast checker → · Palette generator →

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