#12305E#12305E

#12305E is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.5% C 0.090 H 258.9°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#12305E
RGBrgb(18, 48, 94)
HSLhsl(216, 68%, 22%)
HSVhsv(216, 81%, 37%)
CMYKcmyk(80.9%, 48.9%, 0%, 63.1%)
CIE-LABlab(20.24, 7.32, -30.66)
CIE-LCHlch(20.24, 31.52, 283.43°)
OKLaboklab(31.47% -0.0173 -0.0879)
OKLCHoklch(31.47% 0.09 258.9)
XYZxyz(3.3261, 3.0503, 11.0010)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12305E #5E4012
analogous
#12565E #12305E #1A125E
triadic
#12305E #5E1230 #305E12
tetradic
#12305E #5E1256 #5E4012 #125E1A
square
#12305E #5E1256 #5E4012 #125E1A
split-complementary
#12305E #5E1A12 #565E12
monochromatic
#050D1A #08162B #12305E #1C4A91 #2664C5

Accessibility & contrast

On white

13.04
#12305E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#12305E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12305E
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12305E#FFFFFF#000000##FFFFFF
##12305E1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183560
Deuteranopia (green-blind)
#072E5D
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #12305e;
/* rgb */ color: rgb(18, 48, 94);
/* oklch */ color: oklch(31.5% 0.090 258.9);
Tailwind
colors: {
  custom: {
    50: '#5c678c',
    500: '#12305e',
    950: '#000000',
  },
}
SCSS
$custom: #12305e;
$custom-light: #5c678c;
$custom-dark: #000000;
JSON
{
  "hex": "#12305e",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 94
  },
  "hsl": {
    "h": 216.316,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31468,
    "c": 0.08959,
    "h": 258.9
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

primary
#12305E
secondary
#967035
accent
#A63DEB
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #12305E

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

Preview Lab → · Contrast checker → · Palette generator →

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