#1F235E#1F235E

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

Color values

HEX#1F235E
RGBrgb(31, 35, 94)
HSLhsl(236, 50%, 25%)
HSVhsv(236, 67%, 37%)
CMYKcmyk(67%, 62.8%, 0%, 63.1%)
CIE-LABlab(17.00, 18.99, -35.87)
CIE-LCHlch(17.00, 40.59, 297.90°)
OKLaboklab(29.2% 0.0091 -0.1032)
OKLCHoklch(29.2% 0.104 275)
XYZxyz(3.1858, 2.3013, 10.8638)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F235E #5E5A1F
analogous
#1F435E #1F235E #3A1F5E
triadic
#1F235E #5E1F23 #235E1F
tetradic
#1F235E #5E1F43 #5E5A1F #1F5E3A
square
#1F235E #5E1F43 #5E5A1F #1F5E3A
split-complementary
#1F235E #5E3A1F #435E1F
monochromatic
#080917 #101230 #1F235E #2E348C #3D45BA

Accessibility & contrast

On white

14.38
#1F235E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F235E
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F235E#FFFFFF#000000##FFFFFF
##1F235E1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#00313C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f235e;
/* rgb */ color: rgb(31, 35, 94);
/* oklch */ color: oklch(29.2% 0.104 275.0);
Tailwind
colors: {
  custom: {
    50: '#635d8c',
    500: '#1f235e',
    950: '#000000',
  },
}
SCSS
$custom: #1f235e;
$custom-light: #635d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f235e",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 94
  },
  "hsl": {
    "h": 236.19,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.292,
    "c": 0.10357,
    "h": 275
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#1F235E
secondary
#938E46
accent
#D14EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F235E

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

Preview Lab → · Contrast checker → · Palette generator →

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