#0C124B#0C124B

#0C124B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.5% C 0.104 H 270.4°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#0C124B
RGBrgb(12, 18, 75)
HSLhsl(234, 72%, 17%)
HSVhsv(234, 84%, 29%)
CMYKcmyk(84%, 76%, 0%, 70.6%)
CIE-LABlab(9.15, 20.75, -35.86)
CIE-LCHlch(9.15, 41.43, 300.06°)
OKLaboklab(22.52% 0.0007 -0.1038)
OKLCHoklch(22.52% 0.104 270.4)
XYZxyz(1.6375, 1.0186, 6.7656)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C124B #4B450C
analogous
#0C324B #0C124B #260C4B
triadic
#0C124B #4B0C12 #124B0C
tetradic
#0C124B #4B0C32 #4B450C #0C4B26
square
#0C124B #4B0C32 #4B450C #0C4B26
split-complementary
#0C124B #4B260C #324B0C
monochromatic
#04061A #04061A #0C124B #141F80 #1D2BB5

Accessibility & contrast

On white

17.44
#0C124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0C124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C124B
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C124B#FFFFFF#000000##FFFFFF
##0C124B1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#00174A
Tritanopia (blue-blind)
#00222C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c124b;
/* rgb */ color: rgb(12, 18, 75);
/* oklch */ color: oklch(22.5% 0.104 270.4);
Tailwind
colors: {
  custom: {
    50: '#57507e',
    500: '#0c124b',
    950: '#000000',
  },
}
SCSS
$custom: #0c124b;
$custom-light: #57507e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c124b",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 234.286,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22523,
    "c": 0.1038,
    "h": 270.4
  },
  "luminance": 0.01019
}

Semantic roles & 50–950 ramp

primary
#0C124B
secondary
#877E2C
accent
#DE39EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C124B

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

Preview Lab → · Contrast checker → · Palette generator →

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