#0F2F5D#0F2F5D

#0F2F5D is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.0% C 0.090 H 258.1°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#0F2F5D
RGBrgb(15, 47, 93)
HSLhsl(215, 72%, 21%)
HSVhsv(215, 84%, 36%)
CMYKcmyk(83.9%, 49.5%, 0%, 63.5%)
CIE-LABlab(19.74, 7.21, -30.82)
CIE-LCHlch(19.74, 31.65, 283.17°)
OKLaboklab(31.03% -0.0187 -0.0884)
OKLCHoklch(31.03% 0.09 258.1)
XYZxyz(3.1886, 2.9245, 10.7502)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2F5D #5D3D0F
analogous
#0F565D #0F2F5D #160F5D
triadic
#0F2F5D #5D0F2F #2F5D0F
tetradic
#0F2F5D #5D0F56 #5D3D0F #0F5D16
square
#0F2F5D #5D0F56 #5D3D0F #0F5D16
split-complementary
#0F2F5D #5D160F #565D0F
monochromatic
#040D1A #061428 #0F2F5D #174A92 #2064C6

Accessibility & contrast

On white

13.25
#0F2F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F2F5D
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2F5D#FFFFFF#000000##FFFFFF
##0F2F5D1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16345F
Deuteranopia (green-blind)
#042C5C
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #0f2f5d;
/* rgb */ color: rgb(15, 47, 93);
/* oklch */ color: oklch(31.0% 0.090 258.1);
Tailwind
colors: {
  custom: {
    50: '#5b678b',
    500: '#0f2f5d',
    950: '#000000',
  },
}
SCSS
$custom: #0f2f5d;
$custom-light: #5b678b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2f5d",
  "rgb": {
    "r": 15,
    "g": 47,
    "b": 93
  },
  "hsl": {
    "h": 215.385,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31025,
    "c": 0.0904,
    "h": 258.1
  },
  "luminance": 0.02925
}

Semantic roles & 50–950 ramp

primary
#0F2F5D
secondary
#966D31
accent
#A439EF
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #0F2F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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