#0F2A57#0F2A57

#0F2A57 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.088 H 260.1°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#0F2A57
RGBrgb(15, 42, 87)
HSLhsl(218, 71%, 20%)
HSVhsv(218, 83%, 34%)
CMYKcmyk(82.8%, 51.7%, 0%, 65.9%)
CIE-LABlab(17.67, 8.27, -30.16)
CIE-LCHlch(17.67, 31.27, 285.33°)
OKLaboklab(29.29% -0.0152 -0.0866)
OKLCHoklch(29.29% 0.088 260.1)
XYZxyz(2.7446, 2.4453, 9.3423)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2A57 #573C0F
analogous
#0F4E57 #0F2A57 #180F57
triadic
#0F2A57 #570F2A #2A570F
tetradic
#0F2A57 #570F4E #573C0F #0F5718
square
#0F2A57 #570F4E #573C0F #0F5718
split-complementary
#0F2A57 #57180F #4E570F
monochromatic
#050D1A #061123 #0F2A57 #18438B #215CBF

Accessibility & contrast

On white

14.10
#0F2A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#0F2A57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2A57
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2A57#FFFFFF#000000##FFFFFF
##0F2A571.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112F59
Deuteranopia (green-blind)
#002856
Tritanopia (blue-blind)
#00353C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0f2a57;
/* rgb */ color: rgb(15, 42, 87);
/* oklch */ color: oklch(29.3% 0.088 260.1);
Tailwind
colors: {
  custom: {
    50: '#5a6387',
    500: '#0f2a57',
    950: '#000000',
  },
}
SCSS
$custom: #0f2a57;
$custom-light: #5a6387;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2a57",
  "rgb": {
    "r": 15,
    "g": 42,
    "b": 87
  },
  "hsl": {
    "h": 217.5,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.2929,
    "c": 0.08794,
    "h": 260.1
  },
  "luminance": 0.02446
}

Semantic roles & 50–950 ramp

primary
#0F2A57
secondary
#916D31
accent
#AA3AED
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0F2A57

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

Preview Lab → · Contrast checker → · Palette generator →

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