#0F275F#0F275F

#0F275F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.104 H 263.7°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#0F275F
RGBrgb(15, 39, 95)
HSLhsl(222, 73%, 22%)
HSVhsv(222, 84%, 37%)
CMYKcmyk(84.2%, 58.9%, 0%, 62.7%)
CIE-LABlab(17.36, 14.00, -35.98)
CIE-LCHlch(17.36, 38.61, 291.26°)
OKLaboklab(29.26% -0.0115 -0.1038)
OKLCHoklch(29.26% 0.104 263.7)
XYZxyz(2.9873, 2.3785, 11.1259)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F275F #5F470F
analogous
#0F4F5F #0F275F #1F0F5F
triadic
#0F275F #5F0F27 #275F0F
tetradic
#0F275F #5F0F4F #5F470F #0F5F1F
square
#0F275F #5F0F4F #5F470F #0F5F1F
split-complementary
#0F275F #5F1F0F #4F5F0F
monochromatic
#040B1A #07112A #0F275F #173D94 #2052C9

Accessibility & contrast

On white

14.23
#0F275F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#0F275F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F275F
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F275F#FFFFFF#000000##FFFFFF
##0F275F1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#00353E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0f275f;
/* rgb */ color: rgb(15, 39, 95);
/* oklch */ color: oklch(29.3% 0.104 263.7);
Tailwind
colors: {
  custom: {
    50: '#5c608d',
    500: '#0f275f',
    950: '#000000',
  },
}
SCSS
$custom: #0f275f;
$custom-light: #5c608d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f275f",
  "rgb": {
    "r": 15,
    "g": 39,
    "b": 95
  },
  "hsl": {
    "h": 222,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29257,
    "c": 0.10446,
    "h": 263.7
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

primary
#0F275F
secondary
#987932
accent
#B938EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F275F

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

Preview Lab → · Contrast checker → · Palette generator →

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