#12305A#12305A

#12305A is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.2% C 0.083 H 257.5°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#12305A
RGBrgb(18, 48, 90)
HSLhsl(215, 67%, 21%)
HSVhsv(215, 80%, 35%)
CMYKcmyk(80%, 46.7%, 0%, 64.7%)
CIE-LABlab(19.96, 5.61, -28.47)
CIE-LCHlch(19.96, 29.01, 281.14°)
OKLaboklab(31.16% -0.0181 -0.0815)
OKLCHoklch(31.16% 0.083 257.5)
XYZxyz(3.1512, 2.9803, 10.0801)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12305A #5A3C12
analogous
#12545A #12305A #18125A
triadic
#12305A #5A1230 #305A12
tetradic
#12305A #5A1254 #5A3C12 #125A18
square
#12305A #5A1254 #5A3C12 #125A18
split-complementary
#12305A #5A1812 #545A12
monochromatic
#050E1A #081527 #12305A #1C4B8D #2666C0

Accessibility & contrast

On white

13.16
#12305A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12305A
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12305A#FFFFFF#000000##FFFFFF
##12305A1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B345C
Deuteranopia (green-blind)
#0E2D59
Tritanopia (blue-blind)
#003A40
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #12305a;
/* rgb */ color: rgb(18, 48, 90);
/* oklch */ color: oklch(31.2% 0.083 257.5);
Tailwind
colors: {
  custom: {
    50: '#5b6789',
    500: '#12305a',
    950: '#000000',
  },
}
SCSS
$custom: #12305a;
$custom-light: #5b6789;
$custom-dark: #000000;
JSON
{
  "hex": "#12305a",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 90
  },
  "hsl": {
    "h": 215,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31162,
    "c": 0.08345,
    "h": 257.5
  },
  "luminance": 0.02981
}

Semantic roles & 50–950 ramp

primary
#12305A
secondary
#936C35
accent
#A23EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060B
muted
#797A7C

Preview Lab

Preview with #12305A

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

Preview Lab → · Contrast checker → · Palette generator →

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