#0F2751#0F2751

#0F2751 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.0% C 0.083 H 260.7°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#0F2751
RGBrgb(15, 39, 81)
HSLhsl(218, 69%, 19%)
HSVhsv(218, 81%, 32%)
CMYKcmyk(81.5%, 51.9%, 0%, 68.2%)
CIE-LABlab(16.24, 7.88, -28.43)
CIE-LCHlch(16.24, 29.50, 285.49°)
OKLaboklab(28.05% -0.0134 -0.0816)
OKLCHoklch(28.05% 0.083 260.7)
XYZxyz(2.4072, 2.1464, 8.0704)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2751 #51390F
analogous
#0F4851 #0F2751 #180F51
triadic
#0F2751 #510F27 #27510F
tetradic
#0F2751 #510F48 #51390F #0F5118
square
#0F2751 #510F48 #51390F #0F5118
split-complementary
#0F2751 #51180F #48510F
monochromatic
#050C1A #050E1D #0F2751 #194085 #2259B8

Accessibility & contrast

On white

14.69
#0F2751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#0F2751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2751
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2751#FFFFFF#000000##FFFFFF
##0F27511.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102B53
Deuteranopia (green-blind)
#022550
Tritanopia (blue-blind)
#003138
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0f2751;
/* rgb */ color: rgb(15, 39, 81);
/* oklch */ color: oklch(28.0% 0.083 260.7);
Tailwind
colors: {
  custom: {
    50: '#586082',
    500: '#0f2751',
    950: '#000000',
  },
}
SCSS
$custom: #0f2751;
$custom-light: #586082;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2751",
  "rgb": {
    "r": 15,
    "g": 39,
    "b": 81
  },
  "hsl": {
    "h": 218.182,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28046,
    "c": 0.08268,
    "h": 260.7
  },
  "luminance": 0.02147
}

Semantic roles & 50–950 ramp

primary
#0F2751
secondary
#8B6A31
accent
#AC3CEC
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0F2751

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

Preview Lab → · Contrast checker → · Palette generator →

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