#0F2140#0F2140

#0F2140 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.1% C 0.064 H 260.5°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#0F2140
RGBrgb(15, 33, 64)
HSLhsl(218, 62%, 15%)
HSVhsv(218, 77%, 25%)
CMYKcmyk(76.6%, 48.4%, 0%, 74.9%)
CIE-LABlab(12.98, 4.96, -21.95)
CIE-LCHlch(12.98, 22.51, 282.74°)
OKLaboklab(25.14% -0.0105 -0.0627)
OKLCHoklch(25.14% 0.064 260.5)
XYZxyz(1.6659, 1.5593, 5.0627)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2140 #402E0F
analogous
#0F3940 #0F2140 #150F40
triadic
#0F2140 #400F21 #21400F
tetradic
#0F2140 #400F39 #402E0F #0F4015
square
#0F2140 #400F39 #402E0F #0F4015
split-complementary
#0F2140 #40150F #39400F
monochromatic
#060D19 #060D19 #0F2140 #1B3B72 #2654A3

Accessibility & contrast

On white

16.01
#0F2140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0F2140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2140
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2140#FFFFFF#000000##FFFFFF
##0F21401.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122441
Deuteranopia (green-blind)
#0A1F3F
Tritanopia (blue-blind)
#00282D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f2140;
/* rgb */ color: rgb(15, 33, 64);
/* oklch */ color: oklch(25.1% 0.064 260.5);
Tailwind
colors: {
  custom: {
    50: '#545b75',
    500: '#0f2140',
    950: '#000000',
  },
}
SCSS
$custom: #0f2140;
$custom-light: #545b75;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2140",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 217.959,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25137,
    "c": 0.06354,
    "h": 260.5
  },
  "luminance": 0.01559
}

Semantic roles & 50–950 ramp

primary
#0F2140
secondary
#7A5F30
accent
#A943E5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0F2140

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

Preview Lab → · Contrast checker → · Palette generator →

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