#12307C#12307C

#12307C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.0% C 0.134 H 264.1°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#12307C
RGBrgb(18, 48, 124)
HSLhsl(223, 75%, 28%)
HSVhsv(223, 85%, 49%)
CMYKcmyk(85.5%, 61.3%, 0%, 51.4%)
CIE-LABlab(22.64, 20.07, -46.14)
CIE-LCHlch(22.64, 50.32, 293.50°)
OKLaboklab(34.05% -0.0138 -0.1334)
OKLCHoklch(34.05% 0.134 264.1)
XYZxyz(4.9432, 3.6971, 19.5180)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12307C #7C5E12
analogous
#12657C #12307C #29127C
triadic
#12307C #7C1230 #307C12
tetradic
#12307C #7C1265 #7C5E12 #127C29
square
#12307C #7C1265 #7C5E12 #127C29
split-complementary
#12307C #7C2912 #657C12
monochromatic
#040A1B #0A1B47 #12307C #1A45B1 #295CE0

Accessibility & contrast

On white

12.07
#12307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12307C
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12307C#FFFFFF#000000##FFFFFF
##12307C1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #12307c;
/* rgb */ color: rgb(18, 48, 124);
/* oklch */ color: oklch(34.0% 0.134 264.1);
Tailwind
colors: {
  custom: {
    50: '#6567a3',
    500: '#12307c',
    950: '#000000',
  },
}
SCSS
$custom: #12307c;
$custom-light: #6567a3;
$custom-dark: #000000;
JSON
{
  "hex": "#12307c",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 223.019,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34049,
    "c": 0.13414,
    "h": 264.1
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#12307C
secondary
#B28F38
accent
#BC37F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12307C

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

Preview Lab → · Contrast checker → · Palette generator →

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