#1F235F#1F235F

#1F235F is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.3% C 0.105 H 275.0°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#1F235F
RGBrgb(31, 35, 95)
HSLhsl(236, 51%, 25%)
HSVhsv(236, 67%, 37%)
CMYKcmyk(67.4%, 63.2%, 0%, 62.7%)
CIE-LABlab(17.08, 19.38, -36.40)
CIE-LCHlch(17.08, 41.24, 298.03°)
OKLaboklab(29.29% 0.0091 -0.1047)
OKLCHoklch(29.29% 0.105 275)
XYZxyz(3.2310, 2.3193, 11.1017)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F235F #5F5B1F
analogous
#1F435F #1F235F #3B1F5F
triadic
#1F235F #5F1F23 #235F1F
tetradic
#1F235F #5F1F43 #5F5B1F #1F5F3B
square
#1F235F #5F1F43 #5F5B1F #1F5F3B
split-complementary
#1F235F #5F3B1F #435F1F
monochromatic
#080817 #101231 #1F235F #2E348D #3D45BB

Accessibility & contrast

On white

14.34
#1F235F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1F235F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F235F
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F235F#FFFFFF#000000##FFFFFF
##1F235F1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#00323D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f235f;
/* rgb */ color: rgb(31, 35, 95);
/* oklch */ color: oklch(29.3% 0.105 275.0);
Tailwind
colors: {
  custom: {
    50: '#635d8d',
    500: '#1f235f',
    950: '#000000',
  },
}
SCSS
$custom: #1f235f;
$custom-light: #635d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f235f",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 95
  },
  "hsl": {
    "h": 236.25,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29291,
    "c": 0.1051,
    "h": 275
  },
  "luminance": 0.0232
}

Semantic roles & 50–950 ramp

primary
#1F235F
secondary
#948F46
accent
#D14EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F235F

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

Preview Lab → · Contrast checker → · Palette generator →

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