#0C234C#0C234C

#0C234C is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.5% C 0.081 H 260.9°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#0C234C
RGBrgb(12, 35, 76)
HSLhsl(218, 73%, 17%)
HSVhsv(218, 84%, 30%)
CMYKcmyk(84.2%, 53.9%, 0%, 70.2%)
CIE-LABlab(14.41, 8.25, -27.98)
CIE-LCHlch(14.41, 29.17, 286.43°)
OKLaboklab(26.49% -0.0128 -0.0804)
OKLCHoklch(26.49% 0.081 260.9)
XYZxyz(2.0567, 1.8018, 7.0755)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C234C #4C350C
analogous
#0C434C #0C234C #150C4C
triadic
#0C234C #4C0C23 #234C0C
tetradic
#0C234C #4C0C43 #4C350C #0C4C15
square
#0C234C #4C0C43 #4C350C #0C4C15
split-complementary
#0C234C #4C150C #434C0C
monochromatic
#040C1A #040C1A #0C234C #143B81 #1D54B6

Accessibility & contrast

On white

15.44
#0C234C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0C234C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C234C
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C234C#FFFFFF#000000##FFFFFF
##0C234C1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B284E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#002D33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c234c;
/* rgb */ color: rgb(12, 35, 76);
/* oklch */ color: oklch(26.5% 0.081 260.9);
Tailwind
colors: {
  custom: {
    50: '#565d7e',
    500: '#0c234c',
    950: '#000000',
  },
}
SCSS
$custom: #0c234c;
$custom-light: #565d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c234c",
  "rgb": {
    "r": 12,
    "g": 35,
    "b": 76
  },
  "hsl": {
    "h": 218.438,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26487,
    "c": 0.08141,
    "h": 260.9
  },
  "luminance": 0.01802
}

Semantic roles & 50–950 ramp

primary
#0C234C
secondary
#88672C
accent
#AE38EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C234C

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

Preview Lab → · Contrast checker → · Palette generator →

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