#12305B#12305B

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

Color values

HEX#12305B
RGBrgb(18, 48, 91)
HSLhsl(215, 67%, 21%)
HSVhsv(215, 80%, 36%)
CMYKcmyk(80.2%, 47.3%, 0%, 64.3%)
CIE-LABlab(20.03, 6.03, -29.02)
CIE-LCHlch(20.03, 29.64, 281.74°)
OKLaboklab(31.24% -0.0179 -0.0831)
OKLCHoklch(31.24% 0.085 257.8)
XYZxyz(3.1940, 2.9975, 10.3057)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12305B #5B3D12
analogous
#12555B #12305B #19125B
triadic
#12305B #5B1230 #305B12
tetradic
#12305B #5B1255 #5B3D12 #125B19
square
#12305B #5B1255 #5B3D12 #125B19
split-complementary
#12305B #5B1912 #555B12
monochromatic
#050D1A #081528 #12305B #1C4B8E #2666C1

Accessibility & contrast

On white

13.13
#12305B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12305B
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12305B#FFFFFF#000000##FFFFFF
##12305B1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A345D
Deuteranopia (green-blind)
#0C2D5A
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #12305b;
/* rgb */ color: rgb(18, 48, 91);
/* oklch */ color: oklch(31.2% 0.085 257.8);
Tailwind
colors: {
  custom: {
    50: '#5c678a',
    500: '#12305b',
    950: '#000000',
  },
}
SCSS
$custom: #12305b;
$custom-light: #5c678a;
$custom-dark: #000000;
JSON
{
  "hex": "#12305b",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 91
  },
  "hsl": {
    "h": 215.342,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31238,
    "c": 0.08498,
    "h": 257.8
  },
  "luminance": 0.02998
}

Semantic roles & 50–950 ramp

primary
#12305B
secondary
#936D35
accent
#A33EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060B
muted
#797A7C

Preview Lab

Preview with #12305B

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

Preview Lab → · Contrast checker → · Palette generator →

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