#1F255E#1F255E

#1F255E is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.6% C 0.101 H 274.0°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#1F255E
RGBrgb(31, 37, 94)
HSLhsl(234, 50%, 25%)
HSVhsv(234, 67%, 37%)
CMYKcmyk(67%, 60.6%, 0%, 63.1%)
CIE-LABlab(17.56, 17.56, -34.95)
CIE-LCHlch(17.56, 39.11, 296.67°)
OKLaboklab(29.62% 0.007 -0.1004)
OKLCHoklch(29.62% 0.101 274)
XYZxyz(3.2464, 2.4223, 10.8840)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F255E #5E581F
analogous
#1F455E #1F255E #391F5E
triadic
#1F255E #5E1F25 #255E1F
tetradic
#1F255E #5E1F45 #5E581F #1F5E39
square
#1F255E #5E1F45 #5E581F #1F5E39
split-complementary
#1F255E #5E391F #455E1F
monochromatic
#080917 #101330 #1F255E #2E378C #3D49BA

Accessibility & contrast

On white

14.15
#1F255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1F255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F255E
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F255E#FFFFFF#000000##FFFFFF
##1F255E1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f255e;
/* rgb */ color: rgb(31, 37, 94);
/* oklch */ color: oklch(29.6% 0.101 274.0);
Tailwind
colors: {
  custom: {
    50: '#635f8c',
    500: '#1f255e',
    950: '#000000',
  },
}
SCSS
$custom: #1f255e;
$custom-light: #635f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f255e",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 234.286,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29623,
    "c": 0.10068,
    "h": 274
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#1F255E
secondary
#938B46
accent
#CD4EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F255E

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

Preview Lab → · Contrast checker → · Palette generator →

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