#0F285C#0F285C

#0F285C is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.098 H 262.6°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#0F285C
RGBrgb(15, 40, 92)
HSLhsl(221, 72%, 21%)
HSVhsv(221, 84%, 36%)
CMYKcmyk(83.7%, 56.5%, 0%, 63.9%)
CIE-LABlab(17.42, 11.95, -33.90)
CIE-LCHlch(17.42, 35.94, 289.42°)
OKLaboklab(29.22% -0.0126 -0.0977)
OKLCHoklch(29.22% 0.098 262.6)
XYZxyz(2.8869, 2.3915, 10.4326)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F285C #5C430F
analogous
#0F4E5C #0F285C #1C0F5C
triadic
#0F285C #5C0F28 #285C0F
tetradic
#0F285C #5C0F4E #5C430F #0F5C1C
square
#0F285C #5C0F4E #5C430F #0F5C1C
split-complementary
#0F285C #5C1C0F #4E5C0F
monochromatic
#040B1A #061127 #0F285C #183F91 #2056C5

Accessibility & contrast

On white

14.20
#0F285C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#0F285C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F285C
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F285C#FFFFFF#000000##FFFFFF
##0F285C1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042E5E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#00353D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0f285c;
/* rgb */ color: rgb(15, 40, 92);
/* oklch */ color: oklch(29.2% 0.098 262.6);
Tailwind
colors: {
  custom: {
    50: '#5b618b',
    500: '#0f285c',
    950: '#000000',
  },
}
SCSS
$custom: #0f285c;
$custom-light: #5b618b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f285c",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 92
  },
  "hsl": {
    "h": 220.519,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29224,
    "c": 0.09847,
    "h": 262.6
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#0F285C
secondary
#957531
accent
#B439EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04050C
muted
#79797D

Preview Lab

Preview with #0F285C

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

Preview Lab → · Contrast checker → · Palette generator →

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