#0F2159#0F2159

#0F2159 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.104 H 266.0°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#0F2159
RGBrgb(15, 33, 89)
HSLhsl(225, 71%, 20%)
HSVhsv(225, 83%, 35%)
CMYKcmyk(83.1%, 62.9%, 0%, 65.1%)
CIE-LABlab(15.01, 15.89, -35.81)
CIE-LCHlch(15.01, 39.18, 293.93°)
OKLaboklab(27.32% -0.0072 -0.1034)
OKLCHoklch(27.32% 0.104 266)
XYZxyz(2.5434, 1.9103, 9.6839)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2159 #59470F
analogous
#0F4659 #0F2159 #220F59
triadic
#0F2159 #590F21 #21590F
tetradic
#0F2159 #590F46 #59470F #0F5922
square
#0F2159 #590F46 #59470F #0F5922
split-complementary
#0F2159 #59220F #46590F
monochromatic
#040A1A #060E25 #0F2159 #18348D #2148C2

Accessibility & contrast

On white

15.19
#0F2159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#0F2159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2159
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2159#FFFFFF#000000##FFFFFF
##0F21591.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#002258
Tritanopia (blue-blind)
#002F39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0f2159;
/* rgb */ color: rgb(15, 33, 89);
/* oklch */ color: oklch(27.3% 0.104 266.0);
Tailwind
colors: {
  custom: {
    50: '#5b5b88',
    500: '#0f2159',
    950: '#000000',
  },
}
SCSS
$custom: #0f2159;
$custom-light: #5b5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2159",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 225.405,
    "s": 71.154,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27324,
    "c": 0.10367,
    "h": 266
  },
  "luminance": 0.01911
}

Semantic roles & 50–950 ramp

primary
#0F2159
secondary
#937B31
accent
#C23AEE
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #0F2159

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

Preview Lab → · Contrast checker → · Palette generator →

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