#0F275B#0F275B

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

Color values

HEX#0F275B
RGBrgb(15, 39, 91)
HSLhsl(221, 72%, 21%)
HSVhsv(221, 84%, 36%)
CMYKcmyk(83.5%, 57.1%, 0%, 64.3%)
CIE-LABlab(17.03, 12.26, -33.87)
CIE-LCHlch(17.03, 36.02, 289.90°)
OKLaboklab(28.9% -0.0119 -0.0976)
OKLCHoklch(28.9% 0.098 263)
XYZxyz(2.8102, 2.3076, 10.1928)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F275B #5B430F
analogous
#0F4D5B #0F275B #1D0F5B
triadic
#0F275B #5B0F27 #275B0F
tetradic
#0F275B #5B0F4D #5B430F #0F5B1D
square
#0F275B #5B0F4D #5B430F #0F5B1D
split-complementary
#0F275B #5B1D0F #4D5B0F
monochromatic
#040B1A #061026 #0F275B #183E90 #2054C4

Accessibility & contrast

On white

14.37
#0F275B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F275B
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F275B#FFFFFF#000000##FFFFFF
##0F275B1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022E5D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0f275b;
/* rgb */ color: rgb(15, 39, 91);
/* oklch */ color: oklch(28.9% 0.098 263.0);
Tailwind
colors: {
  custom: {
    50: '#5b608a',
    500: '#0f275b',
    950: '#000000',
  },
}
SCSS
$custom: #0f275b;
$custom-light: #5b608a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f275b",
  "rgb": {
    "r": 15,
    "g": 39,
    "b": 91
  },
  "hsl": {
    "h": 221.053,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28898,
    "c": 0.09832,
    "h": 263
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#0F275B
secondary
#957531
accent
#B539EE
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040C
muted
#79797D

Preview Lab

Preview with #0F275B

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

Preview Lab → · Contrast checker → · Palette generator →

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