#12307F#12307F

#12307F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.3% C 0.138 H 264.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#12307F
RGBrgb(18, 48, 127)
HSLhsl(223, 75%, 28%)
HSVhsv(223, 86%, 50%)
CMYKcmyk(85.8%, 62.2%, 0%, 50.2%)
CIE-LABlab(22.91, 21.31, -47.60)
CIE-LCHlch(22.91, 52.15, 294.12°)
OKLaboklab(34.33% -0.0137 -0.1377)
OKLCHoklch(34.33% 0.138 264.3)
XYZxyz(5.1358, 3.7742, 20.5324)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12307F #7F6112
analogous
#12667F #12307F #2A127F
triadic
#12307F #7F1230 #307F12
tetradic
#12307F #7F1266 #7F6112 #127F2A
square
#12307F #7F1266 #7F6112 #127F2A
split-complementary
#12307F #7F2A12 #667F12
monochromatic
#040A1B #0A1C49 #12307F #1A44B5 #2B5DE1

Accessibility & contrast

On white

11.97
#12307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#12307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12307F
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12307F#FFFFFF#000000##FFFFFF
##12307F1.0011.971.7611.97
#FFFFFF11.971.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12307f;
/* rgb */ color: rgb(18, 48, 127);
/* oklch */ color: oklch(34.3% 0.138 264.3);
Tailwind
colors: {
  custom: {
    50: '#6667a5',
    500: '#12307f',
    950: '#000000',
  },
}
SCSS
$custom: #12307f;
$custom-light: #6667a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12307f",
  "rgb": {
    "r": 18,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 223.486,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34331,
    "c": 0.1384,
    "h": 264.3
  },
  "luminance": 0.03775
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12307F

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

Preview Lab → · Contrast checker → · Palette generator →

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