#0F2A5C#0F2A5C

#0F2A5C is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.7% C 0.096 H 261.4°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#0F2A5C
RGBrgb(15, 42, 92)
HSLhsl(219, 72%, 21%)
HSVhsv(219, 84%, 36%)
CMYKcmyk(83.7%, 54.3%, 0%, 63.9%)
CIE-LABlab(18.05, 10.46, -32.87)
CIE-LCHlch(18.05, 34.50, 287.65°)
OKLaboklab(29.71% -0.0144 -0.0946)
OKLCHoklch(29.71% 0.096 261.4)
XYZxyz(2.9560, 2.5299, 10.4557)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2A5C #5C410F
analogous
#0F505C #0F2A5C #1A0F5C
triadic
#0F2A5C #5C0F2A #2A5C0F
tetradic
#0F2A5C #5C0F50 #5C410F #0F5C1A
square
#0F2A5C #5C0F50 #5C410F #0F5C1A
split-complementary
#0F2A5C #5C1A0F #505C0F
monochromatic
#040C1A #061227 #0F2A5C #184291 #205AC5

Accessibility & contrast

On white

13.94
#0F2A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F2A5C
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2A5C#FFFFFF#000000##FFFFFF
##0F2A5C1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A305E
Deuteranopia (green-blind)
#00295B
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0f2a5c;
/* rgb */ color: rgb(15, 42, 92);
/* oklch */ color: oklch(29.7% 0.096 261.4);
Tailwind
colors: {
  custom: {
    50: '#5b638b',
    500: '#0f2a5c',
    950: '#000000',
  },
}
SCSS
$custom: #0f2a5c;
$custom-light: #5b638b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2a5c",
  "rgb": {
    "r": 15,
    "g": 42,
    "b": 92
  },
  "hsl": {
    "h": 218.961,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29706,
    "c": 0.09568,
    "h": 261.4
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#0F2A5C
secondary
#957231
accent
#AF39EF
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#04050C
muted
#79797D

Preview Lab

Preview with #0F2A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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