#0F2D5C#0F2D5C

#0F2D5C is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.4% C 0.092 H 259.3°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#0F2D5C
RGBrgb(15, 45, 92)
HSLhsl(217, 72%, 21%)
HSVhsv(217, 84%, 36%)
CMYKcmyk(83.7%, 51.1%, 0%, 63.9%)
CIE-LABlab(19.02, 8.24, -31.32)
CIE-LCHlch(19.02, 32.39, 284.74°)
OKLaboklab(30.45% -0.017 -0.09)
OKLCHoklch(30.45% 0.092 259.3)
XYZxyz(3.0664, 2.7507, 10.4925)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2D5C #5C3E0F
analogous
#0F535C #0F2D5C #170F5C
triadic
#0F2D5C #5C0F2D #2D5C0F
tetradic
#0F2D5C #5C0F53 #5C3E0F #0F5C17
square
#0F2D5C #5C0F53 #5C3E0F #0F5C17
split-complementary
#0F2D5C #5C170F #535C0F
monochromatic
#040D1A #061327 #0F2D5C #184791 #2060C5

Accessibility & contrast

On white

13.55
#0F2D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F2D5C
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2D5C#FFFFFF#000000##FFFFFF
##0F2D5C1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13325E
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#003840
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #0f2d5c;
/* rgb */ color: rgb(15, 45, 92);
/* oklch */ color: oklch(30.4% 0.092 259.3);
Tailwind
colors: {
  custom: {
    50: '#5b658a',
    500: '#0f2d5c',
    950: '#000000',
  },
}
SCSS
$custom: #0f2d5c;
$custom-light: #5b658a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2d5c",
  "rgb": {
    "r": 15,
    "g": 45,
    "b": 92
  },
  "hsl": {
    "h": 216.623,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30445,
    "c": 0.09156,
    "h": 259.3
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#0F2D5C
secondary
#956E31
accent
#A839EF
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04050C
muted
#797A7D

Preview Lab

Preview with #0F2D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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