#0F2958#0F2958

#0F2958 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.091 H 261.1°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#0F2958
RGBrgb(15, 41, 88)
HSLhsl(219, 71%, 20%)
HSVhsv(219, 83%, 35%)
CMYKcmyk(83%, 53.4%, 0%, 65.5%)
CIE-LABlab(17.42, 9.45, -31.23)
CIE-LCHlch(17.42, 32.63, 286.84°)
OKLaboklab(29.12% -0.0141 -0.0898)
OKLCHoklch(29.12% 0.091 261.1)
XYZxyz(2.7508, 2.3917, 9.5473)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2958 #583E0F
analogous
#0F4D58 #0F2958 #190F58
triadic
#0F2958 #580F29 #29580F
tetradic
#0F2958 #580F4D #583E0F #0F5819
square
#0F2958 #580F4D #583E0F #0F5819
split-complementary
#0F2958 #58190F #4D580F
monochromatic
#040C1A #061124 #0F2958 #18418C #215AC1

Accessibility & contrast

On white

14.20
#0F2958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#0F2958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2958
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2958#FFFFFF#000000##FFFFFF
##0F29581.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2E5A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0f2958;
/* rgb */ color: rgb(15, 41, 88);
/* oklch */ color: oklch(29.1% 0.091 261.1);
Tailwind
colors: {
  custom: {
    50: '#5a6287',
    500: '#0f2958',
    950: '#000000',
  },
}
SCSS
$custom: #0f2958;
$custom-light: #5a6287;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2958",
  "rgb": {
    "r": 15,
    "g": 41,
    "b": 88
  },
  "hsl": {
    "h": 218.63,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29124,
    "c": 0.09089,
    "h": 261.1
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#0F2958
secondary
#926F31
accent
#AE3AEE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0F2958

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

Preview Lab → · Contrast checker → · Palette generator →

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