#0F2142#0F2142

#0F2142 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.3% C 0.067 H 261.4°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#0F2142
RGBrgb(15, 33, 66)
HSLhsl(219, 63%, 16%)
HSVhsv(219, 77%, 26%)
CMYKcmyk(77.3%, 50%, 0%, 74.1%)
CIE-LABlab(13.12, 5.84, -23.12)
CIE-LCHlch(13.12, 23.85, 284.18°)
OKLaboklab(25.29% -0.01 -0.0661)
OKLCHoklch(25.29% 0.067 261.4)
XYZxyz(1.7239, 1.5824, 5.3678)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2142 #42300F
analogous
#0F3A42 #0F2142 #160F42
triadic
#0F2142 #420F21 #21420F
tetradic
#0F2142 #420F3A #42300F #0F4216
square
#0F2142 #420F3A #42300F #0F4216
split-complementary
#0F2142 #42160F #3A420F
monochromatic
#060C19 #060C19 #0F2142 #1A3A74 #2653A6

Accessibility & contrast

On white

15.95
#0F2142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0F2142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2142
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2142#FFFFFF#000000##FFFFFF
##0F21421.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112443
Deuteranopia (green-blind)
#082041
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0f2142;
/* rgb */ color: rgb(15, 33, 66);
/* oklch */ color: oklch(25.3% 0.067 261.4);
Tailwind
colors: {
  custom: {
    50: '#555b76',
    500: '#0f2142',
    950: '#000000',
  },
}
SCSS
$custom: #0f2142;
$custom-light: #555b76;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2142",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 66
  },
  "hsl": {
    "h": 218.824,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25293,
    "c": 0.06685,
    "h": 261.4
  },
  "luminance": 0.01583
}

Semantic roles & 50–950 ramp

primary
#0F2142
secondary
#7C6230
accent
#AC42E6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0F2142

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

Preview Lab → · Contrast checker → · Palette generator →

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