#0F2557#0F2557

#0F2557 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.095 H 263.6°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#0F2557
RGBrgb(15, 37, 87)
HSLhsl(222, 71%, 20%)
HSVhsv(222, 83%, 34%)
CMYKcmyk(82.8%, 57.5%, 0%, 65.9%)
CIE-LABlab(16.07, 12.01, -32.75)
CIE-LCHlch(16.07, 34.88, 290.15°)
OKLaboklab(28.07% -0.0106 -0.0943)
OKLCHoklch(28.07% 0.095 263.6)
XYZxyz(2.5783, 2.1125, 9.2869)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2557 #57410F
analogous
#0F4957 #0F2557 #1D0F57
triadic
#0F2557 #570F25 #25570F
tetradic
#0F2557 #570F49 #57410F #0F571D
square
#0F2557 #570F49 #57410F #0F571D
split-complementary
#0F2557 #571D0F #49570F
monochromatic
#050B1A #060F23 #0F2557 #183B8B #2151BF

Accessibility & contrast

On white

14.76
#0F2557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#0F2557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2557
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2557#FFFFFF#000000##FFFFFF
##0F25571.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022B59
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#00313A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0f2557;
/* rgb */ color: rgb(15, 37, 87);
/* oklch */ color: oklch(28.1% 0.095 263.6);
Tailwind
colors: {
  custom: {
    50: '#5a5f87',
    500: '#0f2557',
    950: '#000000',
  },
}
SCSS
$custom: #0f2557;
$custom-light: #5a5f87;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2557",
  "rgb": {
    "r": 15,
    "g": 37,
    "b": 87
  },
  "hsl": {
    "h": 221.667,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.28066,
    "c": 0.09494,
    "h": 263.6
  },
  "luminance": 0.02113
}

Semantic roles & 50–950 ramp

primary
#0F2557
secondary
#917431
accent
#B73AED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0F2557

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

Preview Lab → · Contrast checker → · Palette generator →

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