#0F2A5E#0F2A5E

#0F2A5E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.9% C 0.099 H 261.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#0F2A5E
RGBrgb(15, 42, 94)
HSLhsl(219, 72%, 21%)
HSVhsv(219, 84%, 37%)
CMYKcmyk(84%, 55.3%, 0%, 63.1%)
CIE-LABlab(18.21, 11.33, -33.94)
CIE-LCHlch(18.21, 35.78, 288.46°)
OKLaboklab(29.88% -0.0141 -0.0977)
OKLCHoklch(29.88% 0.099 261.8)
XYZxyz(3.0446, 2.5653, 10.9222)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2A5E #5E430F
analogous
#0F525E #0F2A5E #1C0F5E
triadic
#0F2A5E #5E0F2A #2A5E0F
tetradic
#0F2A5E #5E0F52 #5E430F #0F5E1C
square
#0F2A5E #5E0F52 #5E430F #0F5E1C
split-complementary
#0F2A5E #5E1C0F #525E0F
monochromatic
#040C1A #071229 #0F2A5E #174293 #2059C8

Accessibility & contrast

On white

13.88
#0F2A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#0F2A5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2A5E
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2A5E#FFFFFF#000000##FFFFFF
##0F2A5E1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073060
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0f2a5e;
/* rgb */ color: rgb(15, 42, 94);
/* oklch */ color: oklch(29.9% 0.099 261.8);
Tailwind
colors: {
  custom: {
    50: '#5c638c',
    500: '#0f2a5e',
    950: '#000000',
  },
}
SCSS
$custom: #0f2a5e;
$custom-light: #5c638c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2a5e",
  "rgb": {
    "r": 15,
    "g": 42,
    "b": 94
  },
  "hsl": {
    "h": 219.494,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29877,
    "c": 0.09876,
    "h": 261.8
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#0F2A5E
secondary
#977531
accent
#B139EF
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #0F2A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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