#0F285B#0F285B

#0F285B is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.097 H 262.4°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#0F285B
RGBrgb(15, 40, 91)
HSLhsl(220, 72%, 21%)
HSVhsv(220, 84%, 36%)
CMYKcmyk(83.5%, 56%, 0%, 64.3%)
CIE-LABlab(17.34, 11.51, -33.36)
CIE-LCHlch(17.34, 35.29, 289.04°)
OKLaboklab(29.14% -0.0128 -0.0961)
OKLCHoklch(29.14% 0.097 262.4)
XYZxyz(2.8434, 2.3741, 10.2039)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F285B #5B420F
analogous
#0F4E5B #0F285B #1C0F5B
triadic
#0F285B #5B0F28 #285B0F
tetradic
#0F285B #5B0F4E #5B420F #0F5B1C
square
#0F285B #5B0F4E #5B420F #0F5B1C
split-complementary
#0F285B #5B1C0F #4E5B0F
monochromatic
#040C1A #061126 #0F285B #183F90 #2056C4

Accessibility & contrast

On white

14.24
#0F285B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#0F285B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F285B
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F285B#FFFFFF#000000##FFFFFF
##0F285B1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052E5D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#00343D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0f285b;
/* rgb */ color: rgb(15, 40, 91);
/* oklch */ color: oklch(29.1% 0.097 262.4);
Tailwind
colors: {
  custom: {
    50: '#5b618a',
    500: '#0f285b',
    950: '#000000',
  },
}
SCSS
$custom: #0f285b;
$custom-light: #5b618a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f285b",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 91
  },
  "hsl": {
    "h": 220.263,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29137,
    "c": 0.09692,
    "h": 262.4
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#0F285B
secondary
#957431
accent
#B339EE
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04050C
muted
#79797D

Preview Lab

Preview with #0F285B

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

Preview Lab → · Contrast checker → · Palette generator →

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