#0F2A5A#0F2A5A

#0F2A5A is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.093 H 260.9°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#0F2A5A
RGBrgb(15, 42, 90)
HSLhsl(218, 71%, 21%)
HSVhsv(218, 83%, 35%)
CMYKcmyk(83.3%, 53.3%, 0%, 64.7%)
CIE-LABlab(17.90, 9.59, -31.80)
CIE-LCHlch(17.90, 33.21, 286.78°)
OKLaboklab(29.54% -0.0147 -0.0914)
OKLCHoklch(29.54% 0.093 260.9)
XYZxyz(2.8698, 2.4953, 10.0013)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2A5A #5A3F0F
analogous
#0F4F5A #0F2A5A #190F5A
triadic
#0F2A5A #5A0F2A #2A5A0F
tetradic
#0F2A5A #5A0F4F #5A3F0F #0F5A19
square
#0F2A5A #5A0F4F #5A3F0F #0F5A19
split-complementary
#0F2A5A #5A190F #4F5A0F
monochromatic
#040C1A #061226 #0F2A5A #18428E #205BC3

Accessibility & contrast

On white

14.01
#0F2A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F2A5A
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2A5A#FFFFFF#000000##FFFFFF
##0F2A5A1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2F5C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#00363D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0f2a5a;
/* rgb */ color: rgb(15, 42, 90);
/* oklch */ color: oklch(29.5% 0.093 260.9);
Tailwind
colors: {
  custom: {
    50: '#5b6389',
    500: '#0f2a5a',
    950: '#000000',
  },
}
SCSS
$custom: #0f2a5a;
$custom-light: #5b6389;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2a5a",
  "rgb": {
    "r": 15,
    "g": 42,
    "b": 90
  },
  "hsl": {
    "h": 218.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29538,
    "c": 0.0926,
    "h": 260.9
  },
  "luminance": 0.02496
}

Semantic roles & 50–950 ramp

primary
#0F2A5A
secondary
#947031
accent
#AD3AEE
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#04050B
muted
#79797C

Preview Lab

Preview with #0F2A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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