#0F2240#0F2240

#0F2240 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.062 H 259.2°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#0F2240
RGBrgb(15, 34, 64)
HSLhsl(217, 62%, 15%)
HSVhsv(217, 77%, 25%)
CMYKcmyk(76.6%, 46.9%, 0%, 74.9%)
CIE-LABlab(13.32, 4.21, -21.40)
CIE-LCHlch(13.32, 21.81, 281.12°)
OKLaboklab(25.4% -0.0116 -0.061)
OKLCHoklch(25.4% 0.062 259.2)
XYZxyz(1.6941, 1.6156, 5.0721)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2240 #402D0F
analogous
#0F3A40 #0F2240 #150F40
triadic
#0F2240 #400F22 #22400F
tetradic
#0F2240 #400F3A #402D0F #0F4015
square
#0F2240 #400F3A #402D0F #0F4015
split-complementary
#0F2240 #40150F #3A400F
monochromatic
#060D19 #060D19 #0F2240 #1B3C72 #2657A3

Accessibility & contrast

On white

15.87
#0F2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0F2240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2240
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2240#FFFFFF#000000##FFFFFF
##0F22401.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142541
Deuteranopia (green-blind)
#0C203F
Tritanopia (blue-blind)
#00292D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0f2240;
/* rgb */ color: rgb(15, 34, 64);
/* oklch */ color: oklch(25.4% 0.062 259.2);
Tailwind
colors: {
  custom: {
    50: '#545c75',
    500: '#0f2240',
    950: '#000000',
  },
}
SCSS
$custom: #0f2240;
$custom-light: #545c75;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2240",
  "rgb": {
    "r": 15,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 216.735,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25404,
    "c": 0.06213,
    "h": 259.2
  },
  "luminance": 0.01616
}

Semantic roles & 50–950 ramp

primary
#0F2240
secondary
#7A5E30
accent
#A643E5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0F2240

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

Preview Lab → · Contrast checker → · Palette generator →

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