#0F2A6E#0F2A6E

#0F2A6E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.3% C 0.123 H 264.1°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#0F2A6E
RGBrgb(15, 42, 110)
HSLhsl(223, 76%, 25%)
HSVhsv(223, 86%, 43%)
CMYKcmyk(86.4%, 61.8%, 0%, 56.9%)
CIE-LABlab(19.57, 18.23, -42.20)
CIE-LCHlch(19.57, 45.97, 293.36°)
OKLaboklab(31.33% -0.0127 -0.122)
OKLCHoklch(31.33% 0.123 264.1)
XYZxyz(3.8384, 2.8828, 15.1030)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2A6E #6E530F
analogous
#0F5A6E #0F2A6E #230F6E
triadic
#0F2A6E #6E0F2A #2A6E0F
tetradic
#0F2A6E #6E0F5A #6E530F #0F6E23
square
#0F2A6E #6E0F5A #6E530F #0F6E23
split-complementary
#0F2A6E #6E230F #5A6E0F
monochromatic
#040A1B #081538 #0F2A6E #163FA4 #1E53DA

Accessibility & contrast

On white

13.32
#0F2A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#0F2A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2A6E
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2A6E#FFFFFF#000000##FFFFFF
##0F2A6E1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #0f2a6e;
/* rgb */ color: rgb(15, 42, 110);
/* oklch */ color: oklch(31.3% 0.123 264.1);
Tailwind
colors: {
  custom: {
    50: '#606398',
    500: '#0f2a6e',
    950: '#000000',
  },
}
SCSS
$custom: #0f2a6e;
$custom-light: #606398;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2a6e",
  "rgb": {
    "r": 15,
    "g": 42,
    "b": 110
  },
  "hsl": {
    "h": 222.947,
    "s": 76,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31329,
    "c": 0.12269,
    "h": 264.1
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#0F2A6E
secondary
#A68533
accent
#BD35F3
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #0F2A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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