#0F2858#0F2858

#0F2858 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.9% C 0.092 H 261.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#0F2858
RGBrgb(15, 40, 88)
HSLhsl(219, 71%, 20%)
HSVhsv(219, 83%, 35%)
CMYKcmyk(83%, 54.5%, 0%, 65.5%)
CIE-LABlab(17.10, 10.20, -31.75)
CIE-LCHlch(17.10, 33.35, 287.81°)
OKLaboklab(28.88% -0.0132 -0.0913)
OKLCHoklch(28.88% 0.092 261.8)
XYZxyz(2.7166, 2.3234, 9.5359)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2858 #583F0F
analogous
#0F4C58 #0F2858 #1A0F58
triadic
#0F2858 #580F28 #28580F
tetradic
#0F2858 #580F4C #583F0F #0F581A
square
#0F2858 #580F4C #583F0F #0F581A
split-complementary
#0F2858 #581A0F #4C580F
monochromatic
#040C1A #061024 #0F2858 #18408C #2158C1

Accessibility & contrast

On white

14.34
#0F2858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F2858
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2858#FFFFFF#000000##FFFFFF
##0F28581.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2E5A
Deuteranopia (green-blind)
#002757
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0f2858;
/* rgb */ color: rgb(15, 40, 88);
/* oklch */ color: oklch(28.9% 0.092 261.8);
Tailwind
colors: {
  custom: {
    50: '#5a6187',
    500: '#0f2858',
    950: '#000000',
  },
}
SCSS
$custom: #0f2858;
$custom-light: #5a6187;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2858",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 88
  },
  "hsl": {
    "h": 219.452,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28879,
    "c": 0.09227,
    "h": 261.8
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#0F2858
secondary
#927131
accent
#B03AEE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0F2858

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

Preview Lab → · Contrast checker → · Palette generator →

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