#0F285D#0F285D

#0F285D is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.100 H 262.8°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#0F285D
RGBrgb(15, 40, 93)
HSLhsl(221, 72%, 21%)
HSVhsv(221, 84%, 36%)
CMYKcmyk(83.9%, 57%, 0%, 63.5%)
CIE-LABlab(17.50, 12.39, -34.43)
CIE-LCHlch(17.50, 36.59, 289.79°)
OKLaboklab(29.31% -0.0125 -0.0992)
OKLCHoklch(29.31% 0.1 262.8)
XYZxyz(2.9309, 2.4091, 10.6643)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F285D #5D440F
analogous
#0F4F5D #0F285D #1D0F5D
triadic
#0F285D #5D0F28 #285D0F
tetradic
#0F285D #5D0F4F #5D440F #0F5D1D
square
#0F285D #5D0F4F #5D440F #0F5D1D
split-complementary
#0F285D #5D1D0F #4F5D0F
monochromatic
#040B1A #061128 #0F285D #173F92 #2055C6

Accessibility & contrast

On white

14.17
#0F285D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F285D
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F285D#FFFFFF#000000##FFFFFF
##0F285D1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F5F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#00353E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0f285d;
/* rgb */ color: rgb(15, 40, 93);
/* oklch */ color: oklch(29.3% 0.100 262.8);
Tailwind
colors: {
  custom: {
    50: '#5c618b',
    500: '#0f285d',
    950: '#000000',
  },
}
SCSS
$custom: #0f285d;
$custom-light: #5c618b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f285d",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 93
  },
  "hsl": {
    "h": 220.769,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29313,
    "c": 0.10001,
    "h": 262.8
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#0F285D
secondary
#967631
accent
#B539EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #0F285D

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

Preview Lab → · Contrast checker → · Palette generator →

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