#0F2A56#0F2A56

#0F2A56 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.086 H 259.8°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#0F2A56
RGBrgb(15, 42, 86)
HSLhsl(217, 70%, 20%)
HSVhsv(217, 83%, 34%)
CMYKcmyk(82.6%, 51.2%, 0%, 66.3%)
CIE-LABlab(17.59, 7.83, -29.61)
CIE-LCHlch(17.59, 30.63, 284.82°)
OKLaboklab(29.21% -0.0154 -0.085)
OKLCHoklch(29.21% 0.086 259.8)
XYZxyz(2.7041, 2.4291, 9.1286)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2A56 #563B0F
analogous
#0F4E56 #0F2A56 #170F56
triadic
#0F2A56 #560F2A #2A560F
tetradic
#0F2A56 #560F4E #563B0F #0F5617
square
#0F2A56 #560F4E #563B0F #0F5617
split-complementary
#0F2A56 #56170F #4E560F
monochromatic
#050D1A #061122 #0F2A56 #18438A #215DBE

Accessibility & contrast

On white

14.13
#0F2A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#0F2A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2A56
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2A56#FFFFFF#000000##FFFFFF
##0F2A561.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122F58
Deuteranopia (green-blind)
#022855
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0f2a56;
/* rgb */ color: rgb(15, 42, 86);
/* oklch */ color: oklch(29.2% 0.086 259.8);
Tailwind
colors: {
  custom: {
    50: '#5a6386',
    500: '#0f2a56',
    950: '#000000',
  },
}
SCSS
$custom: #0f2a56;
$custom-light: #5a6386;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2a56",
  "rgb": {
    "r": 15,
    "g": 42,
    "b": 86
  },
  "hsl": {
    "h": 217.183,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29209,
    "c": 0.08639,
    "h": 259.8
  },
  "luminance": 0.02429
}

Semantic roles & 50–950 ramp

primary
#0F2A56
secondary
#906C31
accent
#A93BED
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0F2A56

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

Preview Lab → · Contrast checker → · Palette generator →

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