#0F2951#0F2951

#0F2951 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.6% C 0.080 H 258.9°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#0F2951
RGBrgb(15, 41, 81)
HSLhsl(216, 69%, 19%)
HSVhsv(216, 81%, 32%)
CMYKcmyk(81.5%, 49.4%, 0%, 68.2%)
CIE-LABlab(16.90, 6.39, -27.37)
CIE-LCHlch(16.90, 28.10, 283.14°)
OKLaboklab(28.56% -0.0154 -0.0784)
OKLCHoklch(28.56% 0.08 258.9)
XYZxyz(2.4746, 2.2812, 8.0929)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2951 #51370F
analogous
#0F4A51 #0F2951 #160F51
triadic
#0F2951 #510F29 #29510F
tetradic
#0F2951 #510F4A #51370F #0F5116
square
#0F2951 #510F4A #51370F #0F5116
split-complementary
#0F2951 #51160F #4A510F
monochromatic
#050D1A #050F1D #0F2951 #194385 #225DB8

Accessibility & contrast

On white

14.42
#0F2951 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#0F2951 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2951
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2951#FFFFFF#000000##FFFFFF
##0F29511.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142D53
Deuteranopia (green-blind)
#072750
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0f2951;
/* rgb */ color: rgb(15, 41, 81);
/* oklch */ color: oklch(28.6% 0.080 258.9);
Tailwind
colors: {
  custom: {
    50: '#586282',
    500: '#0f2951',
    950: '#000000',
  },
}
SCSS
$custom: #0f2951;
$custom-light: #586282;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2951",
  "rgb": {
    "r": 15,
    "g": 41,
    "b": 81
  },
  "hsl": {
    "h": 216.364,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28555,
    "c": 0.07991,
    "h": 258.9
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

primary
#0F2951
secondary
#8B6731
accent
#A73CEC
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0F2951

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

Preview Lab → · Contrast checker → · Palette generator →

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