#0F2A51#0F2A51

#0F2A51 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 28.8% C 0.079 H 258.0°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#0F2A51
RGBrgb(15, 42, 81)
HSLhsl(215, 69%, 19%)
HSVhsv(215, 81%, 32%)
CMYKcmyk(81.5%, 48.1%, 0%, 68.2%)
CIE-LABlab(17.23, 5.64, -26.83)
CIE-LCHlch(17.23, 27.42, 281.88°)
OKLaboklab(28.81% -0.0164 -0.0768)
OKLCHoklch(28.81% 0.079 258)
XYZxyz(2.5096, 2.3513, 8.1046)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2A51 #51360F
analogous
#0F4B51 #0F2A51 #150F51
triadic
#0F2A51 #510F2A #2A510F
tetradic
#0F2A51 #510F4B #51360F #0F5115
square
#0F2A51 #510F4B #51360F #0F5115
split-complementary
#0F2A51 #51150F #4B510F
monochromatic
#050D1A #050F1D #0F2A51 #194585 #2260B8

Accessibility & contrast

On white

14.28
#0F2A51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#0F2A51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2A51
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2A51#FFFFFF#000000##FFFFFF
##0F2A511.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162E52
Deuteranopia (green-blind)
#0A2850
Tritanopia (blue-blind)
#003339
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0f2a51;
/* rgb */ color: rgb(15, 42, 81);
/* oklch */ color: oklch(28.8% 0.079 258.0);
Tailwind
colors: {
  custom: {
    50: '#586382',
    500: '#0f2a51',
    950: '#000000',
  },
}
SCSS
$custom: #0f2a51;
$custom-light: #586382;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2a51",
  "rgb": {
    "r": 15,
    "g": 42,
    "b": 81
  },
  "hsl": {
    "h": 215.455,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28812,
    "c": 0.07856,
    "h": 258
  },
  "luminance": 0.02352
}

Semantic roles & 50–950 ramp

primary
#0F2A51
secondary
#8B6631
accent
#A43CEC
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0F2A51

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

Preview Lab → · Contrast checker → · Palette generator →

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