#0F2857#0F2857

#0F2857 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.091 H 261.6°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#0F2857
RGBrgb(15, 40, 87)
HSLhsl(219, 71%, 20%)
HSVhsv(219, 83%, 34%)
CMYKcmyk(82.8%, 54%, 0%, 65.9%)
CIE-LABlab(17.02, 9.76, -31.20)
CIE-LCHlch(17.02, 32.70, 287.37°)
OKLaboklab(28.79% -0.0133 -0.0897)
OKLCHoklch(28.79% 0.091 261.6)
XYZxyz(2.6755, 2.3070, 9.3193)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2857 #573E0F
analogous
#0F4C57 #0F2857 #1A0F57
triadic
#0F2857 #570F28 #28570F
tetradic
#0F2857 #570F4C #573E0F #0F571A
square
#0F2857 #570F4C #573E0F #0F571A
split-complementary
#0F2857 #571A0F #4C570F
monochromatic
#050C1A #061023 #0F2857 #18408B #2158BF

Accessibility & contrast

On white

14.37
#0F2857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F2857
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2857#FFFFFF#000000##FFFFFF
##0F28571.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2D59
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#00333B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0f2857;
/* rgb */ color: rgb(15, 40, 87);
/* oklch */ color: oklch(28.8% 0.091 261.6);
Tailwind
colors: {
  custom: {
    50: '#5a6187',
    500: '#0f2857',
    950: '#000000',
  },
}
SCSS
$custom: #0f2857;
$custom-light: #5a6187;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2857",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 87
  },
  "hsl": {
    "h": 219.167,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.28794,
    "c": 0.09072,
    "h": 261.6
  },
  "luminance": 0.02307
}

Semantic roles & 50–950 ramp

primary
#0F2857
secondary
#917031
accent
#AF3AED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0F2857

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

Preview Lab → · Contrast checker → · Palette generator →

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