#12305F#12305F

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

Color values

HEX#12305F
RGBrgb(18, 48, 95)
HSLhsl(217, 68%, 22%)
HSVhsv(217, 81%, 37%)
CMYKcmyk(81.1%, 49.5%, 0%, 62.7%)
CIE-LABlab(20.32, 7.75, -31.20)
CIE-LCHlch(20.32, 32.15, 283.94°)
OKLaboklab(31.55% -0.0171 -0.0895)
OKLCHoklch(31.55% 0.091 259.2)
XYZxyz(3.3712, 3.0683, 11.2388)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12305F #5F4112
analogous
#12575F #12305F #1A125F
triadic
#12305F #5F1230 #305F12
tetradic
#12305F #5F1257 #5F4112 #125F1A
square
#12305F #5F1257 #5F4112 #125F1A
split-complementary
#12305F #5F1A12 #575F12
monochromatic
#050D1A #08162C #12305F #1C4A92 #2564C6

Accessibility & contrast

On white

13.01
#12305F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12305F
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12305F#FFFFFF#000000##FFFFFF
##12305F1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173561
Deuteranopia (green-blind)
#052E5E
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #12305f;
/* rgb */ color: rgb(18, 48, 95);
/* oklch */ color: oklch(31.5% 0.091 259.2);
Tailwind
colors: {
  custom: {
    50: '#5d678d',
    500: '#12305f',
    950: '#000000',
  },
}
SCSS
$custom: #12305f;
$custom-light: #5d678d;
$custom-dark: #000000;
JSON
{
  "hex": "#12305f",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 95
  },
  "hsl": {
    "h": 216.623,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31546,
    "c": 0.09112,
    "h": 259.2
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#12305F
secondary
#977136
accent
#A73DEB
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #12305F

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

Preview Lab → · Contrast checker → · Palette generator →

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