#0F2F5E#0F2F5E

#0F2F5E is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.1% C 0.092 H 258.4°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#0F2F5E
RGBrgb(15, 47, 94)
HSLhsl(216, 72%, 21%)
HSVhsv(216, 84%, 37%)
CMYKcmyk(84%, 50%, 0%, 63.1%)
CIE-LABlab(19.81, 7.65, -31.36)
CIE-LCHlch(19.81, 32.28, 283.70°)
OKLaboklab(31.1% -0.0185 -0.09)
OKLCHoklch(31.1% 0.092 258.4)
XYZxyz(3.2332, 2.9424, 10.9850)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2F5E #5E3E0F
analogous
#0F575E #0F2F5E #170F5E
triadic
#0F2F5E #5E0F2F #2F5E0F
tetradic
#0F2F5E #5E0F57 #5E3E0F #0F5E17
square
#0F2F5E #5E0F57 #5E3E0F #0F5E17
split-complementary
#0F2F5E #5E170F #575E0F
monochromatic
#040D1A #071529 #0F2F5E #174993 #2064C8

Accessibility & contrast

On white

13.22
#0F2F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#0F2F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2F5E
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2F5E#FFFFFF#000000##FFFFFF
##0F2F5E1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153460
Deuteranopia (green-blind)
#022D5D
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #0f2f5e;
/* rgb */ color: rgb(15, 47, 94);
/* oklch */ color: oklch(31.1% 0.092 258.4);
Tailwind
colors: {
  custom: {
    50: '#5c678c',
    500: '#0f2f5e',
    950: '#000000',
  },
}
SCSS
$custom: #0f2f5e;
$custom-light: #5c678c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2f5e",
  "rgb": {
    "r": 15,
    "g": 47,
    "b": 94
  },
  "hsl": {
    "h": 215.696,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31104,
    "c": 0.09192,
    "h": 258.4
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#0F2F5E
secondary
#976E31
accent
#A539EF
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #0F2F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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