#1F295E#1F295E

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

Color values

HEX#1F295E
RGBrgb(31, 41, 94)
HSLhsl(230, 50%, 25%)
HSVhsv(230, 67%, 37%)
CMYKcmyk(67%, 56.4%, 0%, 63.1%)
CIE-LABlab(18.74, 14.66, -33.06)
CIE-LCHlch(18.74, 36.16, 293.92°)
OKLaboklab(30.5% 0.0027 -0.0948)
OKLCHoklch(30.5% 0.095 271.6)
XYZxyz(3.3777, 2.6850, 10.9278)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F295E #5E541F
analogous
#1F495E #1F295E #351F5E
triadic
#1F295E #5E1F29 #295E1F
tetradic
#1F295E #5E1F49 #5E541F #1F5E35
square
#1F295E #5E1F49 #5E541F #1F5E35
split-complementary
#1F295E #5E351F #495E1F
monochromatic
#080A17 #101530 #1F295E #2E3D8C #3D51BA

Accessibility & contrast

On white

13.66
#1F295E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F295E
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F295E#FFFFFF#000000##FFFFFF
##1F295E1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083060
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#00353F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f295e;
/* rgb */ color: rgb(31, 41, 94);
/* oklch */ color: oklch(30.5% 0.095 271.6);
Tailwind
colors: {
  custom: {
    50: '#62628c',
    500: '#1f295e',
    950: '#000000',
  },
}
SCSS
$custom: #1f295e;
$custom-light: #62628c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f295e",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 94
  },
  "hsl": {
    "h": 230.476,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30502,
    "c": 0.09484,
    "h": 271.6
  },
  "luminance": 0.02685
}

Semantic roles & 50–950 ramp

primary
#1F295E
secondary
#938746
accent
#C44EDA
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#05050C
muted
#7A797D

Preview Lab

Preview with #1F295E

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

Preview Lab → · Contrast checker → · Palette generator →

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