#0F2256#0F2256

#0F2256 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.098 H 265.2°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#0F2256
RGBrgb(15, 34, 86)
HSLhsl(224, 70%, 20%)
HSVhsv(224, 83%, 34%)
CMYKcmyk(82.6%, 60.5%, 0%, 66.3%)
CIE-LABlab(15.05, 13.84, -33.73)
CIE-LCHlch(15.05, 36.46, 292.31°)
OKLaboklab(27.27% -0.0082 -0.0973)
OKLCHoklch(27.27% 0.098 265.2)
XYZxyz(2.4482, 1.9172, 9.0433)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2256 #56430F
analogous
#0F4556 #0F2256 #200F56
triadic
#0F2256 #560F22 #22560F
tetradic
#0F2256 #560F45 #56430F #0F5620
square
#0F2256 #560F45 #56430F #0F5620
split-complementary
#0F2256 #56200F #45560F
monochromatic
#050A1A #060D22 #0F2256 #18378A #214BBE

Accessibility & contrast

On white

15.18
#0F2256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#0F2256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2256
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2256#FFFFFF#000000##FFFFFF
##0F22561.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0f2256;
/* rgb */ color: rgb(15, 34, 86);
/* oklch */ color: oklch(27.3% 0.098 265.2);
Tailwind
colors: {
  custom: {
    50: '#5a5c86',
    500: '#0f2256',
    950: '#000000',
  },
}
SCSS
$custom: #0f2256;
$custom-light: #5a5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2256",
  "rgb": {
    "r": 15,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 223.944,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27268,
    "c": 0.09763,
    "h": 265.2
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#0F2256
secondary
#907631
accent
#BD3BED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0F2256

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

Preview Lab → · Contrast checker → · Palette generator →

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