#0F2862#0F2862

#0F2862 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.108 H 263.6°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#0F2862
RGBrgb(15, 40, 98)
HSLhsl(222, 73%, 22%)
HSVhsv(222, 85%, 38%)
CMYKcmyk(84.7%, 59.2%, 0%, 61.6%)
CIE-LABlab(17.92, 14.56, -37.05)
CIE-LCHlch(17.92, 39.81, 291.45°)
OKLaboklab(29.76% -0.012 -0.1069)
OKLCHoklch(29.76% 0.108 263.6)
XYZxyz(3.1596, 2.5006, 11.8690)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2862 #62490F
analogous
#0F5162 #0F2862 #200F62
triadic
#0F2862 #620F28 #28620F
tetradic
#0F2862 #620F51 #62490F #0F6220
square
#0F2862 #620F51 #62490F #0F6220
split-complementary
#0F2862 #62200F #51620F
monochromatic
#040B1B #07122D #0F2862 #173E97 #1F53CC

Accessibility & contrast

On white

14.00
#0F2862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#0F2862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2862
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2862#FFFFFF#000000##FFFFFF
##0F28621.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#003640
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0f2862;
/* rgb */ color: rgb(15, 40, 98);
/* oklch */ color: oklch(29.8% 0.108 263.6);
Tailwind
colors: {
  custom: {
    50: '#5d618f',
    500: '#0f2862',
    950: '#000000',
  },
}
SCSS
$custom: #0f2862;
$custom-light: #5d618f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2862",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 98
  },
  "hsl": {
    "h": 221.928,
    "s": 73.451,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29762,
    "c": 0.10761,
    "h": 263.6
  },
  "luminance": 0.02501
}

Semantic roles & 50–950 ramp

primary
#0F2862
secondary
#9B7B32
accent
#B938F0
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #0F2862

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

Preview Lab → · Contrast checker → · Palette generator →

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