#0F2A5F#0F2A5F

#0F2A5F is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.0% C 0.100 H 262.0°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#0F2A5F
RGBrgb(15, 42, 95)
HSLhsl(220, 73%, 22%)
HSVhsv(220, 84%, 37%)
CMYKcmyk(84.2%, 55.8%, 0%, 62.7%)
CIE-LABlab(18.29, 11.77, -34.47)
CIE-LCHlch(18.29, 36.43, 288.85°)
OKLaboklab(29.96% -0.0139 -0.0993)
OKLCHoklch(29.96% 0.1 262)
XYZxyz(3.0898, 2.5833, 11.1600)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2A5F #5F440F
analogous
#0F525F #0F2A5F #1C0F5F
triadic
#0F2A5F #5F0F2A #2A5F0F
tetradic
#0F2A5F #5F0F52 #5F440F #0F5F1C
square
#0F2A5F #5F0F52 #5F440F #0F5F1C
split-complementary
#0F2A5F #5F1C0F #525F0F
monochromatic
#040C1A #07132A #0F2A5F #174194 #2059C9

Accessibility & contrast

On white

13.84
#0F2A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#0F2A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2A5F
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2A5F#FFFFFF#000000##FFFFFF
##0F2A5F1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053061
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #0f2a5f;
/* rgb */ color: rgb(15, 42, 95);
/* oklch */ color: oklch(30.0% 0.100 262.0);
Tailwind
colors: {
  custom: {
    50: '#5c638d',
    500: '#0f2a5f',
    950: '#000000',
  },
}
SCSS
$custom: #0f2a5f;
$custom-light: #5c638d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2a5f",
  "rgb": {
    "r": 15,
    "g": 42,
    "b": 95
  },
  "hsl": {
    "h": 219.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29964,
    "c": 0.10028,
    "h": 262
  },
  "luminance": 0.02584
}

Semantic roles & 50–950 ramp

primary
#0F2A5F
secondary
#987632
accent
#B238EF
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #0F2A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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