#0C0240#0C0240

#0C0240 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.3% C 0.108 H 276.6°. Best body text is #FFFFFF at 19.12:1 contrast (WCAG AA passes).

Color values

HEX#0C0240
RGBrgb(12, 2, 64)
HSLhsl(250, 94%, 13%)
HSVhsv(250, 97%, 25%)
CMYKcmyk(81.2%, 96.9%, 0%, 74.9%)
CIE-LABlab(4.44, 24.94, -35.83)
CIE-LCHlch(4.44, 43.65, 304.84°)
OKLaboklab(18.3% 0.0125 -0.107)
OKLCHoklch(18.3% 0.108 276.6)
XYZxyz(1.0984, 0.4916, 4.8865)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0240 #364002
analogous
#021740 #0C0240 #2B0240
triadic
#0C0240 #400C02 #02400C
tetradic
#0C0240 #400217 #364002 #02402B
square
#0C0240 #400217 #364002 #02402B
split-complementary
#0C0240 #402B02 #174002
monochromatic
#06011E #06011E #0C0240 #17047B #2206B7

Accessibility & contrast

On white

19.12
#0C0240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#0C0240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0240
19.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0240#FFFFFF#000000##FFFFFF
##0C02401.0019.121.1019.12
#FFFFFF19.121.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001242
Deuteranopia (green-blind)
#000D3F
Tritanopia (blue-blind)
#001622
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0c0240;
/* rgb */ color: rgb(12, 2, 64);
/* oklch */ color: oklch(18.3% 0.108 276.6);
Tailwind
colors: {
  custom: {
    50: '#554676',
    500: '#0c0240',
    950: '#000000',
  },
}
SCSS
$custom: #0c0240;
$custom-light: #554676;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0240",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 64
  },
  "hsl": {
    "h": 249.677,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.18299,
    "c": 0.10774,
    "h": 276.6
  },
  "luminance": 0.00492
}

Semantic roles & 50–950 ramp

primary
#0C0240
secondary
#72831B
accent
#FF29DC
background
#F5F3F7
surface
#E9E5ED
border
#C5C1C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0C0240

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

Preview Lab → · Contrast checker → · Palette generator →

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