#0F2C5B#0F2C5B

#0F2C5B is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.1% C 0.091 H 259.7°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#0F2C5B
RGBrgb(15, 44, 91)
HSLhsl(217, 72%, 21%)
HSVhsv(217, 84%, 36%)
CMYKcmyk(83.5%, 51.6%, 0%, 64.3%)
CIE-LABlab(18.62, 8.54, -31.30)
CIE-LCHlch(18.62, 32.44, 285.26°)
OKLaboklab(30.12% -0.0163 -0.0899)
OKLCHoklch(30.12% 0.091 259.7)
XYZxyz(2.9853, 2.6579, 10.2512)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2C5B #5B3E0F
analogous
#0F525B #0F2C5B #180F5B
triadic
#0F2C5B #5B0F2C #2C5B0F
tetradic
#0F2C5B #5B0F52 #5B3E0F #0F5B18
square
#0F2C5B #5B0F52 #5B3E0F #0F5B18
split-complementary
#0F2C5B #5B180F #525B0F
monochromatic
#040D1A #061326 #0F2C5B #184590 #205FC4

Accessibility & contrast

On white

13.71
#0F2C5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#0F2C5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2C5B
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2C5B#FFFFFF#000000##FFFFFF
##0F2C5B1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11315D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #0f2c5b;
/* rgb */ color: rgb(15, 44, 91);
/* oklch */ color: oklch(30.1% 0.091 259.7);
Tailwind
colors: {
  custom: {
    50: '#5b648a',
    500: '#0f2c5b',
    950: '#000000',
  },
}
SCSS
$custom: #0f2c5b;
$custom-light: #5b648a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2c5b",
  "rgb": {
    "r": 15,
    "g": 44,
    "b": 91
  },
  "hsl": {
    "h": 217.105,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30115,
    "c": 0.09139,
    "h": 259.7
  },
  "luminance": 0.02658
}

Semantic roles & 50–950 ramp

primary
#0F2C5B
secondary
#956F31
accent
#A939EE
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#04050B
muted
#79797C

Preview Lab

Preview with #0F2C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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