#0F2D5B#0F2D5B

#0F2D5B is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.090 H 259.0°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#0F2D5B
RGBrgb(15, 45, 91)
HSLhsl(216, 72%, 21%)
HSVhsv(216, 84%, 36%)
CMYKcmyk(83.5%, 50.5%, 0%, 64.3%)
CIE-LABlab(18.94, 7.80, -30.78)
CIE-LCHlch(18.94, 31.75, 284.23°)
OKLaboklab(30.36% -0.0172 -0.0884)
OKLCHoklch(30.36% 0.09 259)
XYZxyz(3.0230, 2.7333, 10.2638)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2D5B #5B3D0F
analogous
#0F535B #0F2D5B #170F5B
triadic
#0F2D5B #5B0F2D #2D5B0F
tetradic
#0F2D5B #5B0F53 #5B3D0F #0F5B17
square
#0F2D5B #5B0F53 #5B3D0F #0F5B17
split-complementary
#0F2D5B #5B170F #535B0F
monochromatic
#040D1A #061326 #0F2D5B #184790 #2061C4

Accessibility & contrast

On white

13.58
#0F2D5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#0F2D5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2D5B
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2D5B#FFFFFF#000000##FFFFFF
##0F2D5B1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14325D
Deuteranopia (green-blind)
#022B5A
Tritanopia (blue-blind)
#00383F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #0f2d5b;
/* rgb */ color: rgb(15, 45, 91);
/* oklch */ color: oklch(30.4% 0.090 259.0);
Tailwind
colors: {
  custom: {
    50: '#5b658a',
    500: '#0f2d5b',
    950: '#000000',
  },
}
SCSS
$custom: #0f2d5b;
$custom-light: #5b658a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2d5b",
  "rgb": {
    "r": 15,
    "g": 45,
    "b": 91
  },
  "hsl": {
    "h": 216.316,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30364,
    "c": 0.09002,
    "h": 259
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#0F2D5B
secondary
#956D31
accent
#A739EE
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04050B
muted
#797A7C

Preview Lab

Preview with #0F2D5B

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

Preview Lab → · Contrast checker → · Palette generator →

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