#0F2852#0F2852

#0F2852 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.4% C 0.083 H 260.2°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#0F2852
RGBrgb(15, 40, 82)
HSLhsl(218, 69%, 19%)
HSVhsv(218, 82%, 32%)
CMYKcmyk(81.7%, 51.2%, 0%, 67.8%)
CIE-LABlab(16.64, 7.57, -28.46)
CIE-LCHlch(16.64, 29.45, 284.89°)
OKLaboklab(28.38% -0.0142 -0.0816)
OKLCHoklch(28.38% 0.083 260.2)
XYZxyz(2.4782, 2.2281, 8.2805)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2852 #52390F
analogous
#0F4A52 #0F2852 #180F52
triadic
#0F2852 #520F28 #28520F
tetradic
#0F2852 #520F4A #52390F #0F5218
square
#0F2852 #520F4A #52390F #0F5218
split-complementary
#0F2852 #52180F #4A520F
monochromatic
#050D1A #060F1E #0F2852 #184186 #225AB9

Accessibility & contrast

On white

14.53
#0F2852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#0F2852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2852
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2852#FFFFFF#000000##FFFFFF
##0F28521.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112C54
Deuteranopia (green-blind)
#032651
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0f2852;
/* rgb */ color: rgb(15, 40, 82);
/* oklch */ color: oklch(28.4% 0.083 260.2);
Tailwind
colors: {
  custom: {
    50: '#596183',
    500: '#0f2852',
    950: '#000000',
  },
}
SCSS
$custom: #0f2852;
$custom-light: #596183;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2852",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 82
  },
  "hsl": {
    "h": 217.612,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2838,
    "c": 0.08287,
    "h": 260.2
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#0F2852
secondary
#8C6A31
accent
#AA3CEC
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0F2852

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

Preview Lab → · Contrast checker → · Palette generator →

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