#0C1F4B#0C1F4B

#0C1F4B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.086 H 263.8°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#0C1F4B
RGBrgb(12, 31, 75)
HSLhsl(222, 72%, 17%)
HSVhsv(222, 84%, 29%)
CMYKcmyk(84%, 58.7%, 0%, 70.6%)
CIE-LABlab(13.02, 10.87, -29.53)
CIE-LCHlch(13.02, 31.47, 290.21°)
OKLaboklab(25.4% -0.0093 -0.0851)
OKLCHoklch(25.4% 0.086 263.8)
XYZxyz(1.9112, 1.5659, 6.8568)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1F4B #4B380C
analogous
#0C3F4B #0C1F4B #190C4B
triadic
#0C1F4B #4B0C1F #1F4B0C
tetradic
#0C1F4B #4B0C3F #4B380C #0C4B19
square
#0C1F4B #4B0C3F #4B380C #0C4B19
split-complementary
#0C1F4B #4B190C #3F4B0C
monochromatic
#040B1A #040B1A #0C1F4B #143580 #1D4BB5

Accessibility & contrast

On white

15.99
#0C1F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0C1F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1F4B
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1F4B#FFFFFF#000000##FFFFFF
##0C1F4B1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02254D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#002A31
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c1f4b;
/* rgb */ color: rgb(12, 31, 75);
/* oklch */ color: oklch(25.4% 0.086 263.8);
Tailwind
colors: {
  custom: {
    50: '#565a7e',
    500: '#0c1f4b',
    950: '#000000',
  },
}
SCSS
$custom: #0c1f4b;
$custom-light: #565a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1f4b",
  "rgb": {
    "r": 12,
    "g": 31,
    "b": 75
  },
  "hsl": {
    "h": 221.905,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25402,
    "c": 0.08557,
    "h": 263.8
  },
  "luminance": 0.01566
}

Semantic roles & 50–950 ramp

primary
#0C1F4B
secondary
#876B2C
accent
#B839EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0C1F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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