#0F2C5C#0F2C5C

#0F2C5C is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.2% C 0.093 H 260.0°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#0F2C5C
RGBrgb(15, 44, 92)
HSLhsl(217, 72%, 21%)
HSVhsv(217, 84%, 36%)
CMYKcmyk(83.7%, 52.2%, 0%, 63.9%)
CIE-LABlab(18.69, 8.98, -31.84)
CIE-LCHlch(18.69, 33.08, 285.74°)
OKLaboklab(30.2% -0.0161 -0.0915)
OKLCHoklch(30.2% 0.093 260)
XYZxyz(3.0287, 2.6753, 10.4799)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2C5C #5C3F0F
analogous
#0F525C #0F2C5C #180F5C
triadic
#0F2C5C #5C0F2C #2C5C0F
tetradic
#0F2C5C #5C0F52 #5C3F0F #0F5C18
square
#0F2C5C #5C0F52 #5C3F0F #0F5C18
split-complementary
#0F2C5C #5C180F #525C0F
monochromatic
#040D1A #061327 #0F2C5C #184591 #205EC5

Accessibility & contrast

On white

13.68
#0F2C5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#0F2C5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2C5C
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2C5C#FFFFFF#000000##FFFFFF
##0F2C5C1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10315E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #0f2c5c;
/* rgb */ color: rgb(15, 44, 92);
/* oklch */ color: oklch(30.2% 0.093 260.0);
Tailwind
colors: {
  custom: {
    50: '#5b648a',
    500: '#0f2c5c',
    950: '#000000',
  },
}
SCSS
$custom: #0f2c5c;
$custom-light: #5b648a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2c5c",
  "rgb": {
    "r": 15,
    "g": 44,
    "b": 92
  },
  "hsl": {
    "h": 217.403,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30197,
    "c": 0.09293,
    "h": 260
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#0F2C5C
secondary
#957031
accent
#AA39EF
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#04050C
muted
#79797D

Preview Lab

Preview with #0F2C5C

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

Preview Lab → · Contrast checker → · Palette generator →

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