#0F274F#0F274F

#0F274F is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.9% C 0.080 H 260.0°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#0F274F
RGBrgb(15, 39, 79)
HSLhsl(218, 68%, 18%)
HSVhsv(218, 81%, 31%)
CMYKcmyk(81%, 50.6%, 0%, 69%)
CIE-LABlab(16.09, 7.00, -27.31)
CIE-LCHlch(16.09, 28.20, 284.38°)
OKLaboklab(27.88% -0.0138 -0.0783)
OKLCHoklch(27.88% 0.08 260)
XYZxyz(2.3333, 2.1169, 7.6812)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F274F #4F370F
analogous
#0F474F #0F274F #170F4F
triadic
#0F274F #4F0F27 #274F0F
tetradic
#0F274F #4F0F47 #4F370F #0F4F17
square
#0F274F #4F0F47 #4F370F #0F4F17
split-complementary
#0F274F #4F170F #474F0F
monochromatic
#050D1A #050E1C #0F274F #194082 #235AB6

Accessibility & contrast

On white

14.75
#0F274F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#0F274F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F274F
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F274F#FFFFFF#000000##FFFFFF
##0F274F1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122B51
Deuteranopia (green-blind)
#05254E
Tritanopia (blue-blind)
#003037
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0f274f;
/* rgb */ color: rgb(15, 39, 79);
/* oklch */ color: oklch(27.9% 0.080 260.0);
Tailwind
colors: {
  custom: {
    50: '#586081',
    500: '#0f274f',
    950: '#000000',
  },
}
SCSS
$custom: #0f274f;
$custom-light: #586081;
$custom-dark: #000000;
JSON
{
  "hex": "#0f274f",
  "rgb": {
    "r": 15,
    "g": 39,
    "b": 79
  },
  "hsl": {
    "h": 217.5,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27884,
    "c": 0.07951,
    "h": 260
  },
  "luminance": 0.02117
}

Semantic roles & 50–950 ramp

primary
#0F274F
secondary
#896831
accent
#AA3DEB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #0F274F

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

Preview Lab → · Contrast checker → · Palette generator →

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