#0C1E4B#0C1E4B

#0C1E4B is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.087 H 264.5°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#0C1E4B
RGBrgb(12, 30, 75)
HSLhsl(223, 72%, 17%)
HSVhsv(223, 84%, 29%)
CMYKcmyk(84%, 60%, 0%, 70.6%)
CIE-LABlab(12.70, 11.64, -30.05)
CIE-LCHlch(12.70, 32.23, 291.18°)
OKLaboklab(25.16% -0.0084 -0.0866)
OKLCHoklch(25.16% 0.087 264.5)
XYZxyz(1.8854, 1.5145, 6.8482)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1E4B #4B390C
analogous
#0C3E4B #0C1E4B #1A0C4B
triadic
#0C1E4B #4B0C1E #1E4B0C
tetradic
#0C1E4B #4B0C3E #4B390C #0C4B1A
square
#0C1E4B #4B0C3E #4B390C #0C4B1A
split-complementary
#0C1E4B #4B1A0C #3E4B0C
monochromatic
#040B1A #040B1A #0C1E4B #143380 #1D48B5

Accessibility & contrast

On white

16.12
#0C1E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0C1E4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1E4B
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1E4B#FFFFFF#000000##FFFFFF
##0C1E4B1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1e4b;
/* rgb */ color: rgb(12, 30, 75);
/* oklch */ color: oklch(25.2% 0.087 264.5);
Tailwind
colors: {
  custom: {
    50: '#56597e',
    500: '#0c1e4b',
    950: '#000000',
  },
}
SCSS
$custom: #0c1e4b;
$custom-light: #56597e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1e4b",
  "rgb": {
    "r": 12,
    "g": 30,
    "b": 75
  },
  "hsl": {
    "h": 222.857,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25158,
    "c": 0.08702,
    "h": 264.5
  },
  "luminance": 0.01515
}

Semantic roles & 50–950 ramp

primary
#0C1E4B
secondary
#876D2C
accent
#BB39EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0C1E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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