#0F285E#0F285E

#0F285E is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.102 H 263.0°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#0F285E
RGBrgb(15, 40, 94)
HSLhsl(221, 72%, 21%)
HSVhsv(221, 84%, 37%)
CMYKcmyk(84%, 57.4%, 0%, 63.1%)
CIE-LABlab(17.58, 12.82, -34.96)
CIE-LCHlch(17.58, 37.23, 290.14°)
OKLaboklab(29.4% -0.0124 -0.1008)
OKLCHoklch(29.4% 0.102 263)
XYZxyz(2.9755, 2.4269, 10.8991)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F285E #5E450F
analogous
#0F505E #0F285E #1E0F5E
triadic
#0F285E #5E0F28 #285E0F
tetradic
#0F285E #5E0F50 #5E450F #0F5E1E
square
#0F285E #5E0F50 #5E450F #0F5E1E
split-complementary
#0F285E #5E1E0F #505E0F
monochromatic
#040B1A #071229 #0F285E #173E93 #2055C8

Accessibility & contrast

On white

14.14
#0F285E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#0F285E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F285E
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F285E#FFFFFF#000000##FFFFFF
##0F285E1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#00353E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0f285e;
/* rgb */ color: rgb(15, 40, 94);
/* oklch */ color: oklch(29.4% 0.102 263.0);
Tailwind
colors: {
  custom: {
    50: '#5c618c',
    500: '#0f285e',
    950: '#000000',
  },
}
SCSS
$custom: #0f285e;
$custom-light: #5c618c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f285e",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 94
  },
  "hsl": {
    "h": 221.013,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29401,
    "c": 0.10154,
    "h": 263
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #0F285E

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

Preview Lab → · Contrast checker → · Palette generator →

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