#0C235F#0C235F

#0C235F is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.2% C 0.111 H 264.4°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#0C235F
RGBrgb(12, 35, 95)
HSLhsl(223, 78%, 21%)
HSVhsv(223, 87%, 37%)
CMYKcmyk(87.4%, 63.2%, 0%, 62.7%)
CIE-LABlab(16.03, 16.66, -38.15)
CIE-LCHlch(16.03, 41.63, 293.60°)
OKLaboklab(28.23% -0.0109 -0.1103)
OKLCHoklch(28.23% 0.111 264.4)
XYZxyz(2.8175, 2.1061, 11.0823)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C235F #5F480C
analogous
#0C4C5F #0C235F #1E0C5F
triadic
#0C235F #5F0C23 #235F0C
tetradic
#0C235F #5F0C4C #5F480C #0C5F1E
square
#0C235F #5F0C4C #5F480C #0C5F1E
split-complementary
#0C235F #5F1E0C #4C5F0C
monochromatic
#030A1B #050F29 #0C235F #133795 #1A4BCC

Accessibility & contrast

On white

14.78
#0C235F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#0C235F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C235F
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C235F#FFFFFF#000000##FFFFFF
##0C235F1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#00323D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c235f;
/* rgb */ color: rgb(12, 35, 95);
/* oklch */ color: oklch(28.2% 0.111 264.4);
Tailwind
colors: {
  custom: {
    50: '#5c5d8d',
    500: '#0c235f',
    950: '#000000',
  },
}
SCSS
$custom: #0c235f;
$custom-light: #5c5d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c235f",
  "rgb": {
    "r": 12,
    "g": 35,
    "b": 95
  },
  "hsl": {
    "h": 223.373,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28228,
    "c": 0.11084,
    "h": 264.4
  },
  "luminance": 0.02106
}

Semantic roles & 50–950 ramp

primary
#0C235F
secondary
#997B2D
accent
#BF34F4
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0C235F

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

Preview Lab → · Contrast checker → · Palette generator →

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