#0F2856#0F2856

#0F2856 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.7% C 0.089 H 261.3°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#0F2856
RGBrgb(15, 40, 86)
HSLhsl(219, 70%, 20%)
HSVhsv(219, 83%, 34%)
CMYKcmyk(82.6%, 53.5%, 0%, 66.3%)
CIE-LABlab(16.94, 9.32, -30.66)
CIE-LCHlch(16.94, 32.05, 286.92°)
OKLaboklab(28.71% -0.0135 -0.0881)
OKLCHoklch(28.71% 0.089 261.3)
XYZxyz(2.6349, 2.2907, 9.1056)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2856 #563D0F
analogous
#0F4C56 #0F2856 #190F56
triadic
#0F2856 #560F28 #28560F
tetradic
#0F2856 #560F4C #563D0F #0F5619
square
#0F2856 #560F4C #563D0F #0F5619
split-complementary
#0F2856 #56190F #4C560F
monochromatic
#050C1A #061022 #0F2856 #18408A #2158BE

Accessibility & contrast

On white

14.40
#0F2856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F2856
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2856#FFFFFF#000000##FFFFFF
##0F28561.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2D58
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0f2856;
/* rgb */ color: rgb(15, 40, 86);
/* oklch */ color: oklch(28.7% 0.089 261.3);
Tailwind
colors: {
  custom: {
    50: '#5a6186',
    500: '#0f2856',
    950: '#000000',
  },
}
SCSS
$custom: #0f2856;
$custom-light: #5a6186;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2856",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 86
  },
  "hsl": {
    "h": 218.873,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2871,
    "c": 0.08915,
    "h": 261.3
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#0F2856
secondary
#906E31
accent
#AE3BED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0F2856

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

Preview Lab → · Contrast checker → · Palette generator →

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