#12307D#12307D

#12307D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.136 H 264.2°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#12307D
RGBrgb(18, 48, 125)
HSLhsl(223, 75%, 28%)
HSVhsv(223, 86%, 49%)
CMYKcmyk(85.6%, 61.6%, 0%, 51%)
CIE-LABlab(22.73, 20.48, -46.63)
CIE-LCHlch(22.73, 50.93, 293.71°)
OKLaboklab(34.14% -0.0138 -0.1349)
OKLCHoklch(34.14% 0.136 264.2)
XYZxyz(5.0068, 3.7226, 19.8527)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12307D #7D5F12
analogous
#12657D #12307D #2A127D
triadic
#12307D #7D1230 #307D12
tetradic
#12307D #7D1265 #7D5F12 #127D2A
square
#12307D #7D1265 #7D5F12 #127D2A
split-complementary
#12307D #7D2A12 #657D12
monochromatic
#040A1B #0A1B48 #12307D #1A45B2 #295DE0

Accessibility & contrast

On white

12.04
#12307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#12307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12307D
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12307D#FFFFFF#000000##FFFFFF
##12307D1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #12307d;
/* rgb */ color: rgb(18, 48, 125);
/* oklch */ color: oklch(34.1% 0.136 264.2);
Tailwind
colors: {
  custom: {
    50: '#6567a3',
    500: '#12307d',
    950: '#000000',
  },
}
SCSS
$custom: #12307d;
$custom-light: #6567a3;
$custom-dark: #000000;
JSON
{
  "hex": "#12307d",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 223.178,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34143,
    "c": 0.13556,
    "h": 264.2
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#12307D
secondary
#B39038
accent
#BD36F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12307D

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

Preview Lab → · Contrast checker → · Palette generator →

#12307D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva