#0F275A#0F275A

#0F275A is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.097 H 262.9°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#0F275A
RGBrgb(15, 39, 90)
HSLhsl(221, 71%, 21%)
HSVhsv(221, 83%, 35%)
CMYKcmyk(83.3%, 56.7%, 0%, 64.7%)
CIE-LABlab(16.94, 11.82, -33.34)
CIE-LCHlch(16.94, 35.37, 289.52°)
OKLaboklab(28.81% -0.012 -0.096)
OKLCHoklch(28.81% 0.097 262.9)
XYZxyz(2.7673, 2.2905, 9.9671)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F275A #5A420F
analogous
#0F4C5A #0F275A #1C0F5A
triadic
#0F275A #5A0F27 #275A0F
tetradic
#0F275A #5A0F4C #5A420F #0F5A1C
square
#0F275A #5A0F4C #5A420F #0F5A1C
split-complementary
#0F275A #5A1C0F #4C5A0F
monochromatic
#040B1A #061026 #0F275A #183E8E #2054C3

Accessibility & contrast

On white

14.40
#0F275A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F275A
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F275A#FFFFFF#000000##FFFFFF
##0F275A1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042D5C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#00333C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0f275a;
/* rgb */ color: rgb(15, 39, 90);
/* oklch */ color: oklch(28.8% 0.097 262.9);
Tailwind
colors: {
  custom: {
    50: '#5b6089',
    500: '#0f275a',
    950: '#000000',
  },
}
SCSS
$custom: #0f275a;
$custom-light: #5b6089;
$custom-dark: #000000;
JSON
{
  "hex": "#0f275a",
  "rgb": {
    "r": 15,
    "g": 39,
    "b": 90
  },
  "hsl": {
    "h": 220.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2881,
    "c": 0.09678,
    "h": 262.9
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#0F275A
secondary
#947431
accent
#B43AEE
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #0F275A

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

Preview Lab → · Contrast checker → · Palette generator →

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