#0C234E#0C234E

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

Color values

HEX#0C234E
RGBrgb(12, 35, 78)
HSLhsl(219, 73%, 18%)
HSVhsv(219, 85%, 31%)
CMYKcmyk(84.6%, 55.1%, 0%, 69.4%)
CIE-LABlab(14.57, 9.15, -29.09)
CIE-LCHlch(14.57, 30.49, 287.45°)
OKLaboklab(26.66% -0.0125 -0.0837)
OKLCHoklch(26.66% 0.085 261.5)
XYZxyz(2.1273, 1.8300, 7.4474)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C234E #4E370C
analogous
#0C444E #0C234E #160C4E
triadic
#0C234E #4E0C23 #234E0C
tetradic
#0C234E #4E0C44 #4E370C #0C4E16
square
#0C234E #4E0C44 #4E370C #0C4E16
split-complementary
#0C234E #4E160C #444E0C
monochromatic
#040C1B #040C1B #0C234E #143B83 #1C53B8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C234E#FFFFFF#000000##FFFFFF
##0C234E1.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)
#092850
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#002D34
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0c234e;
/* rgb */ color: rgb(12, 35, 78);
/* oklch */ color: oklch(26.7% 0.085 261.5);
Tailwind
colors: {
  custom: {
    50: '#575d80',
    500: '#0c234e',
    950: '#000000',
  },
}
SCSS
$custom: #0c234e;
$custom-light: #575d80;
$custom-dark: #000000;
JSON
{
  "hex": "#0c234e",
  "rgb": {
    "r": 12,
    "g": 35,
    "b": 78
  },
  "hsl": {
    "h": 219.091,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26658,
    "c": 0.0846,
    "h": 261.5
  },
  "luminance": 0.0183
}

Semantic roles & 50–950 ramp

primary
#0C234E
secondary
#8A692C
accent
#B038F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C234E

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

Preview Lab → · Contrast checker → · Palette generator →

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