#12305C#12305C

#12305C is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.3% C 0.087 H 258.2°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#12305C
RGBrgb(18, 48, 92)
HSLhsl(216, 67%, 22%)
HSVhsv(216, 80%, 36%)
CMYKcmyk(80.4%, 47.8%, 0%, 63.9%)
CIE-LABlab(20.10, 6.46, -29.57)
CIE-LCHlch(20.10, 30.27, 282.33°)
OKLaboklab(31.31% -0.0177 -0.0847)
OKLCHoklch(31.31% 0.087 258.2)
XYZxyz(3.2375, 3.0148, 10.5344)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12305C #5C3E12
analogous
#12555C #12305C #19125C
triadic
#12305C #5C1230 #305C12
tetradic
#12305C #5C1255 #5C3E12 #125C19
square
#12305C #5C1255 #5C3E12 #125C19
split-complementary
#12305C #5C1912 #555C12
monochromatic
#050D1A #081529 #12305C #1C4B8F #2665C2

Accessibility & contrast

On white

13.10
#12305C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#12305C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12305C
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12305C#FFFFFF#000000##FFFFFF
##12305C1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A345E
Deuteranopia (green-blind)
#0B2D5B
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #12305c;
/* rgb */ color: rgb(18, 48, 92);
/* oklch */ color: oklch(31.3% 0.087 258.2);
Tailwind
colors: {
  custom: {
    50: '#5c678a',
    500: '#12305c',
    950: '#000000',
  },
}
SCSS
$custom: #12305c;
$custom-light: #5c678a;
$custom-dark: #000000;
JSON
{
  "hex": "#12305c",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 92
  },
  "hsl": {
    "h": 215.676,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31314,
    "c": 0.08653,
    "h": 258.2
  },
  "luminance": 0.03015
}

Semantic roles & 50–950 ramp

primary
#12305C
secondary
#946E35
accent
#A43EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #12305C

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

Preview Lab → · Contrast checker → · Palette generator →

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