#0F3170#0F3170

#0F3170 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.1% C 0.116 H 261.4°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#0F3170
RGBrgb(15, 49, 112)
HSLhsl(219, 76%, 25%)
HSVhsv(219, 87%, 44%)
CMYKcmyk(86.6%, 56.3%, 0%, 56.1%)
CIE-LABlab(21.83, 13.99, -39.82)
CIE-LCHlch(21.83, 42.21, 289.36°)
OKLaboklab(33.09% -0.0174 -0.1149)
OKLCHoklch(33.09% 0.116 261.4)
XYZxyz(4.2189, 3.4675, 15.7730)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F3170 #704E0F
analogous
#0F6270 #0F3170 #1D0F70
triadic
#0F3170 #700F31 #31700F
tetradic
#0F3170 #700F62 #704E0F #0F701D
square
#0F3170 #700F62 #704E0F #0F701D
split-complementary
#0F3170 #701D0F #62700F
monochromatic
#040C1B #08193A #0F3170 #1649A6 #1D60DC

Accessibility & contrast

On white

12.40
#0F3170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#0F3170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F3170
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F3170#FFFFFF#000000##FFFFFF
##0F31701.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003972
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #0f3170;
/* rgb */ color: rgb(15, 49, 112);
/* oklch */ color: oklch(33.1% 0.116 261.4);
Tailwind
colors: {
  custom: {
    50: '#61689a',
    500: '#0f3170',
    950: '#000000',
  },
}
SCSS
$custom: #0f3170;
$custom-light: #61689a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f3170",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 112
  },
  "hsl": {
    "h": 218.969,
    "s": 76.378,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33087,
    "c": 0.1162,
    "h": 261.4
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#0F3170
secondary
#A87F33
accent
#B035F3
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #0F3170

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

Preview Lab → · Contrast checker → · Palette generator →

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