#0F2851#0F2851

#0F2851 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.3% C 0.081 H 259.8°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#0F2851
RGBrgb(15, 40, 81)
HSLhsl(217, 69%, 19%)
HSVhsv(217, 81%, 32%)
CMYKcmyk(81.5%, 50.6%, 0%, 68.2%)
CIE-LABlab(16.57, 7.13, -27.90)
CIE-LCHlch(16.57, 28.80, 284.34°)
OKLaboklab(28.3% -0.0144 -0.08)
OKLCHoklch(28.3% 0.081 259.8)
XYZxyz(2.4405, 2.2130, 8.0815)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2851 #51380F
analogous
#0F4951 #0F2851 #170F51
triadic
#0F2851 #510F28 #28510F
tetradic
#0F2851 #510F49 #51380F #0F5117
square
#0F2851 #510F49 #51380F #0F5117
split-complementary
#0F2851 #51170F #49510F
monochromatic
#050D1A #050F1D #0F2851 #194285 #225BB8

Accessibility & contrast

On white

14.56
#0F2851 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#0F2851 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2851
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2851#FFFFFF#000000##FFFFFF
##0F28511.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122C53
Deuteranopia (green-blind)
#042650
Tritanopia (blue-blind)
#003238
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0f2851;
/* rgb */ color: rgb(15, 40, 81);
/* oklch */ color: oklch(28.3% 0.081 259.8);
Tailwind
colors: {
  custom: {
    50: '#586182',
    500: '#0f2851',
    950: '#000000',
  },
}
SCSS
$custom: #0f2851;
$custom-light: #586182;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2851",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 81
  },
  "hsl": {
    "h": 217.273,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28299,
    "c": 0.08129,
    "h": 259.8
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#0F2851
secondary
#8B6931
accent
#A93CEC
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0F2851

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

Preview Lab → · Contrast checker → · Palette generator →

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