#1B2F74#1B2F74

#1B2F74 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.121 H 267.2°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#1B2F74
RGBrgb(27, 47, 116)
HSLhsl(227, 62%, 28%)
HSVhsv(227, 77%, 45%)
CMYKcmyk(76.7%, 59.5%, 0%, 54.5%)
CIE-LABlab(22.04, 18.51, -42.02)
CIE-LCHlch(22.04, 45.91, 293.77°)
OKLaboklab(33.49% -0.006 -0.1212)
OKLCHoklch(33.49% 0.121 267.2)
XYZxyz(4.6198, 3.5265, 16.9568)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F74 #74601B
analogous
#1B5B74 #1B2F74 #331B74
triadic
#1B2F74 #741B2F #2F741B
tetradic
#1B2F74 #741B5B #74601B #1B7433
square
#1B2F74 #741B5B #74601B #1B7433
split-complementary
#1B2F74 #74331B #5B741B
monochromatic
#060A19 #0F1B42 #1B2F74 #2743A6 #395BD1

Accessibility & contrast

On white

12.31
#1B2F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1B2F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F74
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F74#FFFFFF#000000##FFFFFF
##1B2F741.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2f74;
/* rgb */ color: rgb(27, 47, 116);
/* oklch */ color: oklch(33.5% 0.121 267.2);
Tailwind
colors: {
  custom: {
    50: '#65679d',
    500: '#1b2f74',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f74;
$custom-light: #65679d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f74",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 226.517,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33485,
    "c": 0.12132,
    "h": 267.2
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#1B2F74
secondary
#A99242
accent
#C142E5
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1B2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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