#0C1E5F#0C1E5F

#0C1E5F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.2% C 0.118 H 266.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#0C1E5F
RGBrgb(12, 30, 95)
HSLhsl(227, 78%, 21%)
HSVhsv(227, 87%, 37%)
CMYKcmyk(87.4%, 68.4%, 0%, 62.7%)
CIE-LABlab(14.58, 20.37, -40.52)
CIE-LCHlch(14.58, 45.36, 296.69°)
OKLaboklab(27.15% -0.0078 -0.1173)
OKLCHoklch(27.15% 0.118 266.2)
XYZxyz(2.6807, 1.8326, 11.0367)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1E5F #5F4D0C
analogous
#0C475F #0C1E5F #230C5F
triadic
#0C1E5F #5F0C1E #1E5F0C
tetradic
#0C1E5F #5F0C47 #5F4D0C #0C5F23
square
#0C1E5F #5F0C47 #5F4D0C #0C5F23
split-complementary
#0C1E5F #5F230C #475F0C
monochromatic
#03091B #050D29 #0C1E5F #132F95 #1A40CC

Accessibility & contrast

On white

15.37
#0C1E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#0C1E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1E5F
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1E5F#FFFFFF#000000##FFFFFF
##0C1E5F1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0c1e5f;
/* rgb */ color: rgb(12, 30, 95);
/* oklch */ color: oklch(27.2% 0.118 266.2);
Tailwind
colors: {
  custom: {
    50: '#5c598d',
    500: '#0c1e5f',
    950: '#000000',
  },
}
SCSS
$custom: #0c1e5f;
$custom-light: #5c598d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1e5f",
  "rgb": {
    "r": 12,
    "g": 30,
    "b": 95
  },
  "hsl": {
    "h": 226.988,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2715,
    "c": 0.11759,
    "h": 266.2
  },
  "luminance": 0.01833
}

Semantic roles & 50–950 ramp

primary
#0C1E5F
secondary
#99822D
accent
#CA34F4
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0C1E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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