#0F275C#0F275C

#0F275C is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.0% C 0.100 H 263.2°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#0F275C
RGBrgb(15, 39, 92)
HSLhsl(221, 72%, 21%)
HSVhsv(221, 84%, 36%)
CMYKcmyk(83.7%, 57.6%, 0%, 63.9%)
CIE-LABlab(17.11, 12.69, -34.40)
CIE-LCHlch(17.11, 36.67, 290.25°)
OKLaboklab(28.99% -0.0118 -0.0992)
OKLCHoklch(28.99% 0.1 263.2)
XYZxyz(2.8536, 2.3250, 10.4215)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F275C #5C440F
analogous
#0F4D5C #0F275C #1D0F5C
triadic
#0F275C #5C0F27 #275C0F
tetradic
#0F275C #5C0F4D #5C440F #0F5C1D
square
#0F275C #5C0F4D #5C440F #0F5C1D
split-complementary
#0F275C #5C1D0F #4D5C0F
monochromatic
#040B1A #061127 #0F275C #183D91 #2054C5

Accessibility & contrast

On white

14.33
#0F275C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#0F275C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F275C
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F275C#FFFFFF#000000##FFFFFF
##0F275C1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012E5E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#00343D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0f275c;
/* rgb */ color: rgb(15, 39, 92);
/* oklch */ color: oklch(29.0% 0.100 263.2);
Tailwind
colors: {
  custom: {
    50: '#5b608b',
    500: '#0f275c',
    950: '#000000',
  },
}
SCSS
$custom: #0f275c;
$custom-light: #5b608b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f275c",
  "rgb": {
    "r": 15,
    "g": 39,
    "b": 92
  },
  "hsl": {
    "h": 221.299,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28987,
    "c": 0.09987,
    "h": 263.2
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#0F275C
secondary
#957631
accent
#B639EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040C
muted
#79797D

Preview Lab

Preview with #0F275C

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

Preview Lab → · Contrast checker → · Palette generator →

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