#0C124F#0C124F

#0C124F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.0% C 0.110 H 270.1°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#0C124F
RGBrgb(12, 18, 79)
HSLhsl(235, 74%, 18%)
HSVhsv(235, 85%, 31%)
CMYKcmyk(84.8%, 77.2%, 0%, 69%)
CIE-LABlab(9.60, 22.39, -37.88)
CIE-LCHlch(9.60, 44.00, 300.59°)
OKLaboklab(22.99% 0.0002 -0.1097)
OKLCHoklch(22.99% 0.11 270.1)
XYZxyz(1.7787, 1.0751, 7.5094)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C124F #4F490C
analogous
#0C334F #0C124F #270C4F
triadic
#0C124F #4F0C12 #124F0C
tetradic
#0C124F #4F0C33 #4F490C #0C4F27
square
#0C124F #4F0C33 #4F490C #0C4F27
split-complementary
#0C124F #4F270C #334F0C
monochromatic
#04061B #04061B #0C124F #141E84 #1C2AB9

Accessibility & contrast

On white

17.28
#0C124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0C124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C124F
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C124F#FFFFFF#000000##FFFFFF
##0C124F1.0017.281.2117.28
#FFFFFF17.281.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#00174E
Tritanopia (blue-blind)
#00232F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c124f;
/* rgb */ color: rgb(12, 18, 79);
/* oklch */ color: oklch(23.0% 0.110 270.1);
Tailwind
colors: {
  custom: {
    50: '#595081',
    500: '#0c124f',
    950: '#000000',
  },
}
SCSS
$custom: #0c124f;
$custom-light: #595081;
$custom-dark: #000000;
JSON
{
  "hex": "#0c124f",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 234.627,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22991,
    "c": 0.10967,
    "h": 270.1
  },
  "luminance": 0.01075
}

Semantic roles & 50–950 ramp

primary
#0C124F
secondary
#8B822C
accent
#E038F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C124F

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

Preview Lab → · Contrast checker → · Palette generator →

#0C124F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva