#1F295F#1F295F

#1F295F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.096 H 271.6°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#1F295F
RGBrgb(31, 41, 95)
HSLhsl(231, 51%, 25%)
HSVhsv(231, 67%, 37%)
CMYKcmyk(67.4%, 56.8%, 0%, 62.7%)
CIE-LABlab(18.81, 15.06, -33.59)
CIE-LCHlch(18.81, 36.81, 294.15°)
OKLaboklab(30.59% 0.0028 -0.0964)
OKLCHoklch(30.59% 0.096 271.6)
XYZxyz(3.4229, 2.7031, 11.1656)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F295F #5F551F
analogous
#1F495F #1F295F #351F5F
triadic
#1F295F #5F1F29 #295F1F
tetradic
#1F295F #5F1F49 #5F551F #1F5F35
square
#1F295F #5F1F49 #5F551F #1F5F35
split-complementary
#1F295F #5F351F #495F1F
monochromatic
#080A17 #101531 #1F295F #2E3D8D #3D51BB

Accessibility & contrast

On white

13.63
#1F295F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F295F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F295F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F295F#FFFFFF#000000##FFFFFF
##1F295F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073161
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f295f;
/* rgb */ color: rgb(31, 41, 95);
/* oklch */ color: oklch(30.6% 0.096 271.6);
Tailwind
colors: {
  custom: {
    50: '#62628d',
    500: '#1f295f',
    950: '#000000',
  },
}
SCSS
$custom: #1f295f;
$custom-light: #62628d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f295f",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 95
  },
  "hsl": {
    "h": 230.625,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30585,
    "c": 0.09642,
    "h": 271.6
  },
  "luminance": 0.02703
}

Semantic roles & 50–950 ramp

primary
#1F295F
secondary
#948846
accent
#C44EDA
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #1F295F

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

Preview Lab → · Contrast checker → · Palette generator →

#1F295F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva