#0C2150#0C2150

#0C2150 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.091 H 263.4°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#0C2150
RGBrgb(12, 33, 80)
HSLhsl(221, 74%, 18%)
HSVhsv(221, 85%, 31%)
CMYKcmyk(85%, 58.8%, 0%, 68.6%)
CIE-LABlab(14.09, 11.57, -31.23)
CIE-LCHlch(14.09, 33.30, 290.32°)
OKLaboklab(26.34% -0.0105 -0.09)
OKLCHoklch(26.34% 0.091 263.4)
XYZxyz(2.1429, 1.7448, 7.8117)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2150 #503B0C
analogous
#0C4350 #0C2150 #190C50
triadic
#0C2150 #500C21 #21500C
tetradic
#0C2150 #500C43 #503B0C #0C5019
square
#0C2150 #500C43 #503B0C #0C5019
split-complementary
#0C2150 #50190C #43500C
monochromatic
#040B1B #040B1B #0C2150 #143785 #1C4DBA

Accessibility & contrast

On white

15.57
#0C2150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0C2150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2150
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2150#FFFFFF#000000##FFFFFF
##0C21501.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002752
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#002C34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c2150;
/* rgb */ color: rgb(12, 33, 80);
/* oklch */ color: oklch(26.3% 0.091 263.4);
Tailwind
colors: {
  custom: {
    50: '#575b81',
    500: '#0c2150',
    950: '#000000',
  },
}
SCSS
$custom: #0c2150;
$custom-light: #575b81;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2150",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 80
  },
  "hsl": {
    "h": 221.471,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26344,
    "c": 0.09063,
    "h": 263.4
  },
  "luminance": 0.01745
}

Semantic roles & 50–950 ramp

primary
#0C2150
secondary
#8B6E2C
accent
#B737F1
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #0C2150

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

Preview Lab → · Contrast checker → · Palette generator →

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