#1F237C#1F237C

#1F237C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.147 H 272.6°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#1F237C
RGBrgb(31, 35, 124)
HSLhsl(237, 60%, 30%)
HSVhsv(237, 75%, 49%)
CMYKcmyk(75%, 71.8%, 0%, 51.4%)
CIE-LABlab(19.83, 30.39, -50.72)
CIE-LCHlch(19.83, 59.13, 300.93°)
OKLaboklab(32.15% 0.0067 -0.1467)
OKLCHoklch(32.15% 0.147 272.6)
XYZxyz(4.8030, 2.9481, 19.3808)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F237C #7C781F
analogous
#1F527C #1F237C #491F7C
triadic
#1F237C #7C1F23 #237C1F
tetradic
#1F237C #7C1F52 #7C781F #1F7C49
square
#1F237C #7C1F52 #7C781F #1F7C49
split-complementary
#1F237C #7C491F #527C1F
monochromatic
#07071A #13154B #1F237C #2B31AD #454BD0

Accessibility & contrast

On white

13.21
#1F237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F237C
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F237C#FFFFFF#000000##FFFFFF
##1F237C1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f237c;
/* rgb */ color: rgb(31, 35, 124);
/* oklch */ color: oklch(32.2% 0.147 272.6);
Tailwind
colors: {
  custom: {
    50: '#6a5ea3',
    500: '#1f237c',
    950: '#000000',
  },
}
SCSS
$custom: #1f237c;
$custom-light: #6a5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f237c",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 237.419,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32151,
    "c": 0.14683,
    "h": 272.6
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#1F237C
secondary
#AFAB48
accent
#DC45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F237C

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

Preview Lab → · Contrast checker → · Palette generator →

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