#0F408E#0F408E

#0F408E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.139 H 259.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#0F408E
RGBrgb(15, 64, 142)
HSLhsl(217, 81%, 31%)
HSVhsv(217, 89%, 56%)
CMYKcmyk(89.4%, 54.9%, 0%, 44.3%)
CIE-LABlab(28.70, 16.04, -47.53)
CIE-LCHlch(28.70, 50.17, 288.64°)
OKLaboklab(39.07% -0.0244 -0.1372)
OKLCHoklch(39.07% 0.139 259.9)
XYZxyz(6.9111, 5.7205, 26.3258)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F408E #8E5D0F
analogous
#0F7F8E #0F408E #1D0F8E
triadic
#0F408E #8E0F40 #408E0F
tetradic
#0F408E #8E0F7F #8E5D0F #0F8E1D
square
#0F408E #8E0F7F #8E5D0F #0F8E1D
split-complementary
#0F408E #8E1D0F #7F8E0F
monochromatic
#030E1F #092757 #0F408E #1559C5 #2E76E9

Accessibility & contrast

On white

9.79
#0F408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#0F408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F408E
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F408E#FFFFFF#000000##FFFFFF
##0F408E1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0f408e;
/* rgb */ color: rgb(15, 64, 142);
/* oklch */ color: oklch(39.1% 0.139 259.9);
Tailwind
colors: {
  custom: {
    50: '#6874b0',
    500: '#0f408e',
    950: '#000000',
  },
}
SCSS
$custom: #0f408e;
$custom-light: #6874b0;
$custom-dark: #000000;
JSON
{
  "hex": "#0f408e",
  "rgb": {
    "r": 15,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 216.85,
    "s": 80.892,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39066,
    "c": 0.13939,
    "h": 259.9
  },
  "luminance": 0.05721
}

Semantic roles & 50–950 ramp

primary
#0F408E
secondary
#C38C36
accent
#AB31F7
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #0F408E

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

Preview Lab → · Contrast checker → · Palette generator →

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