#12307E#12307E

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

Color values

HEX#12307E
RGBrgb(18, 48, 126)
HSLhsl(223, 75%, 28%)
HSVhsv(223, 86%, 49%)
CMYKcmyk(85.7%, 61.9%, 0%, 50.6%)
CIE-LABlab(22.82, 20.90, -47.12)
CIE-LCHlch(22.82, 51.54, 293.92°)
OKLaboklab(34.24% -0.0137 -0.1363)
OKLCHoklch(34.24% 0.137 264.2)
XYZxyz(5.0710, 3.7482, 20.1908)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12307E #7E6012
analogous
#12667E #12307E #2A127E
triadic
#12307E #7E1230 #307E12
tetradic
#12307E #7E1266 #7E6012 #127E2A
square
#12307E #7E1266 #7E6012 #127E2A
split-complementary
#12307E #7E2A12 #667E12
monochromatic
#040A1B #0A1C48 #12307E #1A44B4 #2A5DE1

Accessibility & contrast

On white

12.00
#12307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#12307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12307E
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12307E#FFFFFF#000000##FFFFFF
##12307E1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #12307e;
/* rgb */ color: rgb(18, 48, 126);
/* oklch */ color: oklch(34.2% 0.137 264.2);
Tailwind
colors: {
  custom: {
    50: '#6567a4',
    500: '#12307e',
    950: '#000000',
  },
}
SCSS
$custom: #12307e;
$custom-light: #6567a4;
$custom-dark: #000000;
JSON
{
  "hex": "#12307e",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 223.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34237,
    "c": 0.13698,
    "h": 264.2
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#12307E
secondary
#B49138
accent
#BE36F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12307E

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

Preview Lab → · Contrast checker → · Palette generator →

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