#242F97#242F97

#242F97 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.168 H 270.7°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#242F97
RGBrgb(36, 47, 151)
HSLhsl(234, 61%, 37%)
HSVhsv(234, 76%, 59%)
CMYKcmyk(76.2%, 68.9%, 0%, 40.8%)
CIE-LABlab(25.69, 33.12, -57.95)
CIE-LCHlch(25.69, 66.74, 299.75°)
OKLaboklab(37.28% 0.0021 -0.1677)
OKLCHoklch(37.28% 0.168 270.7)
XYZxyz(7.3281, 4.6417, 29.7819)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F97 #978C24
analogous
#246997 #242F97 #532497
triadic
#242F97 #97242F #2F9724
tetradic
#242F97 #972469 #978C24 #249753
square
#242F97 #972469 #978C24 #249753
split-complementary
#242F97 #975324 #699724
monochromatic
#0C1034 #182066 #242F97 #303EC8 #5D69D8

Accessibility & contrast

On white

10.89
#242F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#242F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F97
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F97#FFFFFF#000000##FFFFFF
##242F971.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #242f97;
/* rgb */ color: rgb(36, 47, 151);
/* oklch */ color: oklch(37.3% 0.168 270.7);
Tailwind
colors: {
  custom: {
    50: '#7268b7',
    500: '#242f97',
    950: '#000000',
  },
}
SCSS
$custom: #242f97;
$custom-light: #7268b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242f97",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 234.261,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37284,
    "c": 0.16767,
    "h": 270.7
  },
  "luminance": 0.04642
}

Semantic roles & 50–950 ramp

primary
#242F97
secondary
#BDB45A
accent
#D543E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #242F97

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

Preview Lab → · Contrast checker → · Palette generator →

#242F97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva